Simple AI chatbot built with Python and Streamlit, integrated with the Google Gemini API to generate responses in real time.
- Python – main programming language
- Streamlit – framework for building the web interface
- Google Gemini API – AI model used to generate responses
- python-dotenv – environment variable management for API keys
The user sends a message through the chat interface.
The application sends the message to the Gemini model, which generates a response that is displayed back in the chat.
Install dependencies:
pip install -r requirements.txtCreate a .env file:
GOOGLE_API_KEY=your_api_key
Run the app:
streamlit run main.py