Dinusha-Ekanayake commited on
Commit
af4d370
·
verified ·
1 Parent(s): 86743cb

Upload 4 files

Browse files
README.md CHANGED
@@ -1,14 +1,33 @@
1
  ---
2
- title: Predictix Inference Api
3
- emoji: 👀
4
- colorFrom: pink
5
  colorTo: red
6
  sdk: gradio
7
- sdk_version: 6.16.0
8
- python_version: '3.13'
9
  app_file: app.py
10
  pinned: false
11
- license: mit
12
  ---
13
 
14
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Vehicle Priority Classifier
3
+ emoji: 🚛
4
+ colorFrom: blue
5
  colorTo: red
6
  sdk: gradio
7
+ sdk_version: "4.44.0"
 
8
  app_file: app.py
9
  pinned: false
 
10
  ---
11
 
12
+ # Vehicle Maintenance Ticket Priority Classifier
13
+
14
+ Classifies vehicle maintenance issues as **Low**, **Medium**, or **High** priority using an XGBoost model.
15
+
16
+ ## REST API
17
+
18
+ Send a POST request to `/predict`:
19
+
20
+ ```bash
21
+ curl -X POST "https://<your-hf-username>-vehicle-priority-classifier.hf.space/predict" \
22
+ -H "Content-Type: application/json" \
23
+ -d '{"issue_text": "Brakes are making a grinding noise"}'
24
+ ```
25
+
26
+ Response:
27
+ ```json
28
+ {"priority": "High"}
29
+ ```
30
+
31
+ ## UI
32
+
33
+ Visit `/ui` for the interactive Gradio interface.
priority_label_encoder.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:38abfd998b8fdfe31f3e10cd288bc3d4150dd3b95822a2bdb6b75774bd21c5e9
3
+ size 495
requirements.txt CHANGED
@@ -1,2 +1,10 @@
1
- transformers
2
- torch
 
 
 
 
 
 
 
 
 
1
+ gradio
2
+ fastapi
3
+ uvicorn
4
+ pydantic
5
+ pandas
6
+ numpy
7
+ scikit-learn
8
+ xgboost
9
+ joblib
10
+ nltk
xgboost_vehicle_priority_model_3class.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b74ebb9ac1f0df30548fed6e289d86dfbd83b1dc4d433af0fcc7bfc852bd0de
3
+ size 2319039