Skip to content

parmarkalpesh/Chatbot-Gemini

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 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

 
 
 

Contributors

Languages