Update README.md
Browse files
README.md
CHANGED
|
@@ -14,16 +14,20 @@ python:
|
|
| 14 |
|
| 15 |
# π newspace Chatbot
|
| 16 |
|
| 17 |
-
This Space runs a **Gradio 5.47.2 chatbot** powered by Hugging Face Transformers
|
| 18 |
|
| 19 |
-
###
|
| 20 |
-
-
|
| 21 |
-
-
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
---
|
| 25 |
|
| 26 |
-
###
|
| 27 |
```bash
|
| 28 |
pip install -r requirements-lock.txt
|
| 29 |
python app.py
|
|
|
|
| 14 |
|
| 15 |
# π newspace Chatbot
|
| 16 |
|
| 17 |
+
This Space runs a **Gradio 5.47.2 chatbot** powered by Hugging Face Transformers.
|
| 18 |
|
| 19 |
+
### β‘ Model Selection
|
| 20 |
+
- If a **GPU** is available β loads **Falcon-7B-Instruct** (`tiiuae/falcon-7b-instruct`).
|
| 21 |
+
- If only **CPU** is available β falls back to **GPT-2** (`gpt2`).
|
| 22 |
+
|
| 23 |
+
### β
Features
|
| 24 |
+
- Streaming responses with OpenAI-style `messages` format.
|
| 25 |
+
- Auto GPU/CPU model detection.
|
| 26 |
+
- Dependencies locked with `requirements-lock.txt`.
|
| 27 |
|
| 28 |
---
|
| 29 |
|
| 30 |
+
### π₯οΈ Run Locally
|
| 31 |
```bash
|
| 32 |
pip install -r requirements-lock.txt
|
| 33 |
python app.py
|