efnanaladagg commited on
Commit
cf1a57f
·
verified ·
1 Parent(s): 8a0c49c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +26 -0
README.md CHANGED
@@ -8,4 +8,30 @@ pinned: false
8
  short_description: MIS453 Midterm Project
9
  ---
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
8
  short_description: MIS453 Midterm Project
9
  ---
10
 
11
+ #HOW TO USE
12
+ ---
13
+ ## API Usage
14
+
15
+ Base URL:
16
+ https://efnanaladagg-vehicle-damage-classifier.hf.space
17
+
18
+ ### Health check
19
+ GET /health
20
+
21
+ Example:
22
+ https://efnanaladagg-vehicle-damage-classifier.hf.space/health
23
+
24
+ ### Predict (upload image)
25
+ POST /predict
26
+ Content-Type: multipart/form-data
27
+ Form field name: `file`
28
+
29
+ #### cURL example
30
+ ```bash
31
+ curl -X POST \
32
+ "https://efnanaladagg-vehicle-damage-classifier.hf.space/predict" \
33
+ -H "accept: application/json" \
34
+ -F "file=@Car20101.png"
35
+ ---
36
+
37
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference