--- 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