gdleds commited on
Commit
58d71f3
·
1 Parent(s): e2ccfa6

modif tout app

Browse files
Files changed (1) hide show
  1. README.md +19 -33
README.md CHANGED
@@ -21,49 +21,35 @@ Prédit le prix de location journalier.
21
 
22
  Méthode : POST
23
 
24
- Entrée (JSON) :
25
-
26
- {
27
- "input": [[100000, 120, "diesel", "black", "estate", 1, 1, 0, 0, 1, 0, 1]]
28
- }
29
-
30
-
31
- Chaque valeur correspond aux features suivantes :
32
-
33
- mileage → Kilométrage (ex: 100000)
34
-
35
- engine_power → Puissance moteur (ex: 120)
36
-
37
- fuel → Type de carburant (diesel, petrol, electric, hybrid)
38
-
39
- paint_color → Couleur de la voiture
40
-
41
- car_type → Type de voiture (estate, sedan, hatchback, etc.)
42
-
43
- private_parking_available → Parking privé (0/1)
44
-
45
- has_gps → GPS présent (0/1)
46
-
47
- has_air_conditioning → Climatisation (0/1)
48
-
49
- automatic_car → Automatique (0/1)
50
-
51
- has_getaround_connect → Connect (0/1)
52
-
53
- has_speed_regulator → Régulateur de vitesse (0/1)
54
 
55
- winter_tires → Pneus hiver (0/1)
56
 
57
  Sortie (JSON) :
58
 
59
  {
60
- "prediction": [119.5]
61
  }
62
 
63
  🔹 GET /docs
64
 
65
  Accès à la documentation interactive (Swagger UI).
66
- 👉 Exemple : https://ton-espace.hf.space/docs
67
 
68
  🛠️ Stack technique
69
 
 
21
 
22
  Méthode : POST
23
 
24
+ curl -X POST "https://gdleds-api-gat.hf.space/predict" \
25
+ -H "Content-Type: application/json" \
26
+ -d '{
27
+ "model_key": "Audi",
28
+ "mileage": 100000,
29
+ "engine_power": 120,
30
+ "fuel": "diesel",
31
+ "paint_color": "black",
32
+ "car_type": "estate",
33
+ "private_parking_available": true,
34
+ "has_gps": true,
35
+ "has_air_conditioning": false,
36
+ "automatic_car": false,
37
+ "has_getaround_connect": true,
38
+ "has_speed_regulator": false,
39
+ "winter_tires": true
40
+ }'
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
 
42
 
43
  Sortie (JSON) :
44
 
45
  {
46
+ "predicted_price_per_day":124.9
47
  }
48
 
49
  🔹 GET /docs
50
 
51
  Accès à la documentation interactive (Swagger UI).
52
+ 👉 Exemple : https://gdleds-api-get.hf.space/docs
53
 
54
  🛠️ Stack technique
55