Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,10 +1,32 @@
|
|
| 1 |
---
|
| 2 |
-
title: Headache Predictor
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Headache Predictor API
|
| 3 |
+
emoji: 🤕
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# Headache Predictor API
|
| 11 |
+
|
| 12 |
+
This is an inference API for the headache prediction XGBoost model.
|
| 13 |
+
|
| 14 |
+
## Usage
|
| 15 |
+
|
| 16 |
+
```python
|
| 17 |
+
import requests
|
| 18 |
+
|
| 19 |
+
url = "https://YOUR-SPACE-NAME.hf.space/predict"
|
| 20 |
+
data = {
|
| 21 |
+
"features": [1.0, 2.0, 3.0, 4.0, 5.0] # Your feature values
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
response = requests.post(url, json=data)
|
| 25 |
+
print(response.json())
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
## Endpoints
|
| 29 |
+
|
| 30 |
+
- `GET /` - API information
|
| 31 |
+
- `GET /health` - Health check
|
| 32 |
+
- `POST /predict` - Make predictions
|