emp-admin commited on
Commit
b38d797
·
verified ·
1 Parent(s): d120f1a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +27 -5
README.md CHANGED
@@ -1,10 +1,32 @@
1
  ---
2
- title: Headache Predictor Api
3
- emoji: 🏢
4
- colorFrom: red
5
- colorTo: blue
6
  sdk: docker
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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