This Python application creates a chatbot interface using Streamlit, allowing users to interact with an AI model powered by the google.generativeai library. The chatbot responds to various commands and queries, providing conversational responses based on the input.
- Chat Input: Users can enter messages or commands in the chat interface.
- Bot Responses: Based on the input, the chatbot responds with predefined messages or generates content using the AI model.
- Session Management: Maintains a history of conversations within the session using Streamlit's session state.
- Personalization: Displays a personalized greeting and identifies itself as an AI assistant.
- Dynamic Content Generation: Uses the AI model to generate text content for user queries beyond predefined responses.
git clone https://github.com/whitehatboy005/Ai
cd Ai
pip install -r requirements.txt
notepad config.env
streamlit run Ai.py
A .env file in Python is a simple text file used to store configuration settings, environment variables, and other key-value pairs related to a Python project. These files typically contain sensitive information such as API keys, database credentials, or configuration settings.
To get GEMINI_API_KEY in this link https://aistudio.google.com/app/apikey