File size: 660 Bytes
2c99994
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
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.