Spaces:
Sleeping
Sleeping
add README
Browse files
README.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Gemma Chat Demo
|
| 3 |
+
emoji: 🤖
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: "1.30.0"
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Gemma Chat Demo
|
| 13 |
+
|
| 14 |
+
An interactive chat application powered by Google's Gemma models using Hugging Face and Streamlit.
|
| 15 |
+
|
| 16 |
+
## Features
|
| 17 |
+
|
| 18 |
+
- 🔐 Hugging Face authentication for accessing Gemma models
|
| 19 |
+
- 🤖 Support for multiple Gemma model variants (2B, 7B, base and instruction-tuned)
|
| 20 |
+
- 🔄 Task selection for different conversation types:
|
| 21 |
+
- Question Answering
|
| 22 |
+
- Text Generation
|
| 23 |
+
- Code Completion
|
| 24 |
+
- 💬 Clean chat interface with message history
|
| 25 |
+
- 🧹 Option to clear chat history
|
| 26 |
+
|
| 27 |
+
## Usage
|
| 28 |
+
|
| 29 |
+
1. Log in with your Hugging Face token in the sidebar
|
| 30 |
+
2. Select your preferred Gemma model
|
| 31 |
+
3. Choose a task type for your conversation
|
| 32 |
+
4. Start chatting with the model!
|
| 33 |
+
|
| 34 |
+
## Requirements
|
| 35 |
+
|
| 36 |
+
- Python 3.8+
|
| 37 |
+
- Hugging Face account with access to Gemma models
|
| 38 |
+
- Dependencies listed in requirements.txt
|
| 39 |
+
|
| 40 |
+
## Running Locally
|
| 41 |
+
|
| 42 |
+
```bash
|
| 43 |
+
# Install dependencies
|
| 44 |
+
pip install -r requirements.txt
|
| 45 |
+
|
| 46 |
+
# Run the application
|
| 47 |
+
python app.py
|
| 48 |
+
```
|
| 49 |
+
|
| 50 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|