metadata
title: Gitwire
emoji: 🐨
colorFrom: red
colorTo: purple
sdk: docker
pinned: false
license: mit
short_description: This is an ml inference space
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Inference API
This Space runs a FastAPI app with an XGBoost model loaded from xg_bost.pkl.
- Health check:
GET /health - Prediction endpoint:
POST /predit
Sample request
{
"distance_km": 7.93,
"weather_condition": "Windy",
"traffic_level": "Low",
"vehicle_type": "scooter",
"temperature_c": 23.0,
"humidity_pct": 55.0,
"precipitation_mm": 0.0,
"preparation_time_min": 12.0,
"courier_experience_yrs": 1.0,
"worker_age": 29.0,
"worker_rating": 4.7,
"order_type": "Unknown",
"weather_risk": 7.0,
"traffic_risk": 25.0
}
Sample response
{
"prediction": 1.5953301191329956
}