Dinusha-Ekanayake's picture
Upload 3 files
2c99994 verified
|
Raw
History Blame Contribute Delete
660 Bytes

A newer version of the Gradio SDK is available: 6.25.0

Upgrade
metadata
title: Vehicle Priority Classifier
emoji: 🚛
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 4.44.0
app_file: app.py
pinned: false

Vehicle Maintenance Ticket Priority Classifier

Classifies vehicle maintenance issues as Low, Medium, or High priority using an XGBoost model.

REST API

Send a POST request to /predict:

curl -X POST "https://<your-hf-username>-vehicle-priority-classifier.hf.space/predict" \
  -H "Content-Type: application/json" \
  -d '{"issue_text": "Brakes are making a grinding noise"}'

Response:

{"priority": "High"}

UI

Visit /ui for the interactive Gradio interface.