Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -6,7 +6,52 @@ colorTo: gray
|
|
| 6 |
sdk: streamlit
|
| 7 |
sdk_version: 1.42.0
|
| 8 |
app_file: app.py
|
| 9 |
-
pinned:
|
| 10 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 6 |
sdk: streamlit
|
| 7 |
sdk_version: 1.42.0
|
| 8 |
app_file: app.py
|
| 9 |
+
pinned: true
|
| 10 |
---
|
| 11 |
+
# π€ Gemini-Pro Boty π
|
| 12 |
+
|
| 13 |
+
A chatbot powered by **Google Gemini-Pro** and **Streamlit** to interact with users in real-time.
|
| 14 |
+
|
| 15 |
+
## π Features
|
| 16 |
+
- Chat with Google Gemini-Pro (Gemini 2.0 Flash)
|
| 17 |
+
- User-friendly Streamlit UI
|
| 18 |
+
- Maintains conversation history
|
| 19 |
+
- Easy setup with `.env` file for API keys
|
| 20 |
+
|
| 21 |
+
### π Project Structure
|
| 22 |
+
```
|
| 23 |
+
π your-repo-name
|
| 24 |
+
βββ .gitignore
|
| 25 |
+
βββ .env
|
| 26 |
+
βββ README.md
|
| 27 |
+
βββ requirements.txt
|
| 28 |
+
βββ app.py
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
## π οΈ Installation & Setup
|
| 32 |
+
|
| 33 |
+
### 1οΈβ£ Clone the Repository
|
| 34 |
+
```
|
| 35 |
+
git clone https://github.com/your-repo-name.git
|
| 36 |
+
cd your-repo-name
|
| 37 |
+
```
|
| 38 |
+
### 2οΈβ£ Create a Virtual Environment
|
| 39 |
+
```
|
| 40 |
+
python -m venv venv
|
| 41 |
+
source venv/bin/activate # On macOS/Linux
|
| 42 |
+
venv\Scripts\activate # On Windows
|
| 43 |
+
```
|
| 44 |
+
### 3οΈβ£ Install Dependencies
|
| 45 |
+
```
|
| 46 |
+
pip install -r requirements.txt
|
| 47 |
+
```
|
| 48 |
+
### 4οΈβ£ Set Up API Key
|
| 49 |
+
Create a ```.env``` file in the root directory and add:
|
| 50 |
+
```
|
| 51 |
+
GOOGLE_API_KEY=your_google_api_key
|
| 52 |
+
```
|
| 53 |
+
### 5οΈβ£ Run the Streamlit App
|
| 54 |
+
```
|
| 55 |
+
streamlit run app.py
|
| 56 |
+
```
|
| 57 |
|
|
|