Skip to content

Commit bd0514c

Browse files
Create README.md
1 parent a0a1084 commit bd0514c

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

README.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# **Gemini AI Chatbot using Gradio**
2+
🚀 A simple **AI chatbot** powered by **Google Gemini API** and **Gradio UI**.
3+
4+
## **📌 Features**
5+
✅ Uses **Google Gemini 2.0 Flash Lite** for AI responses
6+
**Gradio-based UI** for easy interaction
7+
**Handles user inputs & errors gracefully**
8+
✅ Supports **message history** to maintain conversation flow
9+
10+
---
11+
12+
## **🔧 Installation**
13+
1️⃣ **Clone the repository**
14+
```bash
15+
git clone https://github.com/parmarkalpesh/gemini-chatbot.git
16+
cd gemini-chatbot
17+
```
18+
19+
2️⃣ **Install dependencies**
20+
```bash
21+
pip install google-generativeai gradio
22+
```
23+
24+
3️⃣ **Run the chatbot**
25+
```bash
26+
python ChatBot.py
27+
```
28+
👉 The **Gradio link** will appear—open it in your browser!
29+
30+
---
31+
32+
## **📜 How It Works**
33+
- Uses **Google Gemini API** to process user queries.
34+
- **Gradio UI** makes it user-friendly & accessible.
35+
- **Keeps a conversation history** for better AI responses.
36+
37+
---
38+
39+
## **📌 Configuration**
40+
- Replace the **API key** in `ChatBot.py`:
41+
```python
42+
genai.configure(api_key="your_google_gemini_api_key")
43+
```
44+
- Get an API key from **[Google AI Studio](https://aistudio.google.com/)**
45+
46+
---
47+
48+
## **🌟 Example Usage**
49+
🎤 **User:** "Tell me a joke"
50+
🤖 **Bot:** "Why don’t skeletons fight each other? Because they don’t have the guts!"
51+
52+
---
53+
54+
## **📢 Contributing**
55+
Feel free to **fork**, **improve**, and **submit PRs**! 🚀
56+
57+
---

0 commit comments

Comments
 (0)