| --- |
| 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`: |
|
|
| ```bash |
| 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: |
| ```json |
| {"priority": "High"} |
| ``` |
|
|
| ## UI |
|
|
| Visit `/ui` for the interactive Gradio interface. |
|
|