This is a simple web app that uses OpenAI to generate tweets based on user input. The user selects a content type (e.g. news, sports, entertainment, technology, politics), and the app generates a tweet about that content type.
- Python 3.6 or later
- openai Python package
- streamlit Python package
- Clone this repository:
git clone https://github.com/shfa-e/tweet-generator.git - Install the required Python packages:
pip install openai streamlit - Set up your OpenAI API key by following the instructions on the OpenAI website.
- Start the Streamlit app:
streamlit run tweet_generator.py - Open your web browser and go to
http://localhost:8501 - Choose a content type from the dropdown menu and click the "Generate Tweet" button.
- The app will generate a tweet about the chosen content type and display it on the page.