madamanastasia commited on
Commit
3ba256c
·
1 Parent(s): 2f5bda1

Fix README formatting and add API links

Browse files
Files changed (1) hide show
  1. README.md +21 -2
README.md CHANGED
@@ -1,10 +1,29 @@
1
  ---
2
- title: Getaround Pricing Api
3
  emoji: 🏢
4
  colorFrom: green
5
  colorTo: red
6
  sdk: docker
 
7
  pinned: false
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Getaround Pricing API
3
  emoji: 🏢
4
  colorFrom: green
5
  colorTo: red
6
  sdk: docker
7
+ app_port: 7860
8
  pinned: false
9
  ---
10
 
11
+ ## Production API
12
+
13
+ Base URL:
14
+ https://anabeldg-getaround-pricing-api.hf.space
15
+
16
+ ### Health check
17
+ GET `/health`
18
+ Example: https://anabeldg-getaround-pricing-api.hf.space/health
19
+
20
+ ### API documentation
21
+ https://anabeldg-getaround-pricing-api.hf.space/docs
22
+
23
+ ### Example prediction request
24
+
25
+ ```bash
26
+ curl -s -X POST "https://anabeldg-getaround-pricing-api.hf.space/predict" \
27
+ -H "Content-Type: application/json" \
28
+ -d '{"input":[{"model_key":"RENAULT","mileage":50000,"engine_power":110,"fuel":"diesel","paint_color":"black","car_type":"sedan","private_parking_available":true,"has_gps":true,"has_air_conditioning":true,"automatic_car":false,"has_getaround_connect":true,"has_speed_regulator":true,"winter_tires":false}]}' \
29
+ | python -m json.tool