A Streamlit web application that generates tweets on any topic using Google's Gemini AI model, orchestrated with LangChain.
- Generate 1 to 10 tweets on any user-specified topic
- Powered by Google's Gemini 1.5 Flash model for fast, high-quality text generation
- Simple, interactive web UI built with Streamlit
- LangChain integration for clean prompt templating and model chaining
- Streamlit - Web UI framework
- LangChain - LLM orchestration and prompt management
- Google Generative AI (Gemini) - Large language model for tweet generation
- Python 3.8+
- A Google API key with access to the Gemini API
-
Clone the repository:
git clone https://github.com/satvik314/basic_app_template.git cd basic_app_template -
Install dependencies:
pip install -r requirements.txt
-
Configure your Google API key using Streamlit secrets. Create a
.streamlit/secrets.tomlfile:GOOGLE_API_KEY = "your-google-api-key-here"
streamlit run main.py- Enter a topic in the text input field (e.g., "artificial intelligence", "climate change")
- Select the number of tweets to generate (1-10)
- Click the Generate button
- View the generated tweets displayed on the page
basic_app_template/
├── main.py # Main Streamlit application with LangChain + Gemini integration
├── requirements.txt # Python package dependencies
├── .gitignore # Git ignore rules for Python projects
└── README.md # Project documentation