modif tout app
Browse files
README.md
CHANGED
|
@@ -21,49 +21,35 @@ Prédit le prix de location journalier.
|
|
| 21 |
|
| 22 |
Méthode : POST
|
| 23 |
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
{
|
| 27 |
-
"
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 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 |
-
"
|
| 61 |
}
|
| 62 |
|
| 63 |
🔹 GET /docs
|
| 64 |
|
| 65 |
Accès à la documentation interactive (Swagger UI).
|
| 66 |
-
👉 Exemple : https://
|
| 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 |
|