π 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! π