🚀 A simple AI chatbot powered by Google Gemini API and Gradio UI.
✅ Uses Google Gemini 2.0 Flash Lite for AI responses
✅ Gradio-based UI for easy interaction
✅ Handles user inputs & errors gracefully
✅ Supports message history to maintain conversation flow
1️⃣ Clone the repository
git clone https://github.com/parmarkalpesh/Chatbot-Gemini.git
cd gemini-chatbot
2️⃣ Install dependencies
pip install google-generativeai gradio
3️⃣ Run the chatbot
python ChatBot.py
👉 The Gradio link will appear—open it in your browser!
- Uses Google Gemini API to process user queries.
- Gradio UI makes it user-friendly & accessible.
- Keeps a conversation history for better AI responses.
- Replace the API key in
ChatBot.py
:genai.configure(api_key="your_google_gemini_api_key")
- Get an API key from Google AI Studio
🎤 User: "Tell me a joke"
🤖 Bot: "Why don’t skeletons fight each other? Because they don’t have the guts!"
Feel free to fork, improve, and submit PRs! 🚀