Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
@@ -9,5 +9,44 @@ app_file: app.py
|
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
|
13 |
An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).
|
|
|
9 |
pinned: false
|
10 |
license: apache-2.0
|
11 |
---
|
12 |
+
# π€ Zephyr-7B Chatbot for Mobile & Web
|
13 |
+
|
14 |
+
A lightweight **chatbot UI** built with [Gradio](https://gradio.app/) that connects to **Zephyr-7B** using the [Hugging Face Inference API](https://huggingface.co/docs/huggingface_hub/guides/inference).
|
15 |
+
Optimized for **mobile & desktop**, with adjustable parameters for creative or factual responses.
|
16 |
+
|
17 |
+
---
|
18 |
+
|
19 |
+
## β¨ Features
|
20 |
+
- π± **Mobile-friendly UI** (works smoothly on phones & tablets)
|
21 |
+
- π¬ **Streaming responses** (token-by-token, like ChatGPT)
|
22 |
+
- βοΈ Adjustable parameters:
|
23 |
+
- System prompt (role of the assistant)
|
24 |
+
- Max tokens
|
25 |
+
- Temperature
|
26 |
+
- Top-p (nucleus sampling)
|
27 |
+
- π Powered by **Hugging Faceβs hosted inference API** (no need to run locally)
|
28 |
+
|
29 |
+
---
|
30 |
+
|
31 |
+
## π Usage
|
32 |
+
1. Type your message in the input box.
|
33 |
+
2. Wait for the assistant to generate a response (it streams word by word).
|
34 |
+
3. Adjust the sliders (temperature, top-p, etc.) to change behavior.
|
35 |
+
|
36 |
+
---
|
37 |
+
|
38 |
+
## π οΈ Tech Stack
|
39 |
+
- [Gradio](https://gradio.app/) β UI framework
|
40 |
+
- [huggingface_hub](https://huggingface.co/docs/huggingface_hub) β model inference
|
41 |
+
- [Zephyr-7B](https://huggingface.co/HuggingFaceH4/zephyr-7b-beta) β instruction-tuned LLM
|
42 |
+
|
43 |
+
---
|
44 |
+
|
45 |
+
## π¦ Installation (for local development)
|
46 |
+
Clone this repo and install dependencies:
|
47 |
+
```bash
|
48 |
+
git clone https://huggingface.co/spaces/Asilbek14/zephyr-for-mobile
|
49 |
+
cd zephyr-for-mobile
|
50 |
+
pip install -r requirements.txt
|
51 |
|
52 |
An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).
|