File size: 546 Bytes
4443c15
b38d797
 
 
 
4443c15
 
 
 
b38d797
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
title: Headache Predictor API
emoji: 🤕
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
---

# Headache Predictor API

This is an inference API for the headache prediction XGBoost model.

## Usage

```python
import requests

url = "https://YOUR-SPACE-NAME.hf.space/predict"
data = {
    "features": [1.0, 2.0, 3.0, 4.0, 5.0]  # Your feature values
}

response = requests.post(url, json=data)
print(response.json())
```

## Endpoints

- `GET /` - API information
- `GET /health` - Health check
- `POST /predict` - Make predictions