Spaces:
Sleeping
Sleeping
metadata
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
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 informationGET /health- Health checkPOST /predict- Make predictions