Skip to content

A simple AI chatbot powered by Google Gemini 2.0 API and Gradio UI. It processes user queries, maintains conversation history, and provides intelligent responses.

Notifications You must be signed in to change notification settings

parmarkalpesh/Chatbot-Gemini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Gemini AI Chatbot using Gradio

🚀 A simple AI chatbot powered by Google Gemini API and Gradio UI.

📌 Features

✅ 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


🔧 Installation

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!


📜 How It Works

  • Uses Google Gemini API to process user queries.
  • Gradio UI makes it user-friendly & accessible.
  • Keeps a conversation history for better AI responses.

📌 Configuration

  • Replace the API key in ChatBot.py:
    genai.configure(api_key="your_google_gemini_api_key")
  • Get an API key from Google AI Studio

🌟 Example Usage

🎤 User: "Tell me a joke"
🤖 Bot: "Why don’t skeletons fight each other? Because they don’t have the guts!"


📢 Contributing

Feel free to fork, improve, and submit PRs! 🚀


About

A simple AI chatbot powered by Google Gemini 2.0 API and Gradio UI. It processes user queries, maintains conversation history, and provides intelligent responses.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages