Spaces:
Runtime error
Runtime error
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,23 +1,38 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
| 4 |
|
| 5 |
## Endpoints
|
| 6 |
|
| 7 |
-
- `GET /health` —
|
| 8 |
-
- `
|
| 9 |
-
- `POST /predict/image?model_key=<key>` — MRI image prediction
|
| 10 |
|
| 11 |
-
##
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
## Run locally with Docker
|
| 19 |
|
| 20 |
```bash
|
| 21 |
-
docker build -t neurohealth-
|
| 22 |
-
docker run --rm -p 7860:7860 neurohealth-
|
| 23 |
```
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: NeuroHealth GGUF Space
|
| 3 |
+
emoji: 🤖
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: docker
|
| 7 |
+
sdk_version: "1.0"
|
| 8 |
+
python_version: "3.11"
|
| 9 |
+
app_file: app.py
|
| 10 |
+
pinned: false
|
| 11 |
+
---
|
| 12 |
|
| 13 |
+
# NeuroHealth GGUF Space
|
| 14 |
+
|
| 15 |
+
This space exposes the `qwen2-1_5b-instruct-q4_0.gguf` model in `backend/saved_models` for text generation.
|
| 16 |
|
| 17 |
## Endpoints
|
| 18 |
|
| 19 |
+
- `GET /health` — GGUF file availability
|
| 20 |
+
- `POST /generate` — text generation
|
|
|
|
| 21 |
|
| 22 |
+
## Request body example
|
| 23 |
|
| 24 |
+
```json
|
| 25 |
+
{
|
| 26 |
+
"prompt": "Explain the role of dopamine in Parkinson's disease.",
|
| 27 |
+
"max_tokens": 256,
|
| 28 |
+
"temperature": 0.8,
|
| 29 |
+
"top_p": 0.95
|
| 30 |
+
}
|
| 31 |
+
```
|
| 32 |
|
| 33 |
## Run locally with Docker
|
| 34 |
|
| 35 |
```bash
|
| 36 |
+
docker build -t neurohealth-gguf .
|
| 37 |
+
docker run --rm -p 7860:7860 neurohealth-gguf
|
| 38 |
```
|