Spaces:
Sleeping
Sleeping
grosse modif
Browse files
app.py
CHANGED
|
@@ -374,22 +374,21 @@ with tab3:
|
|
| 374 |
has_speed_regulator = st.checkbox("Régulateur de vitesse")
|
| 375 |
winter_tires = st.checkbox("Pneus hiver")
|
| 376 |
|
|
|
|
| 377 |
payload = {
|
| 378 |
-
"
|
| 379 |
-
|
| 380 |
-
|
| 381 |
-
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
|
| 389 |
-
|
| 390 |
-
|
| 391 |
-
winter_tires
|
| 392 |
-
]]
|
| 393 |
}
|
| 394 |
|
| 395 |
if st.button("🔮 Prédire le prix"):
|
|
|
|
| 374 |
has_speed_regulator = st.checkbox("Régulateur de vitesse")
|
| 375 |
winter_tires = st.checkbox("Pneus hiver")
|
| 376 |
|
| 377 |
+
# Construire le JSON attendu
|
| 378 |
payload = {
|
| 379 |
+
"model_key": model_key,
|
| 380 |
+
"mileage": mileage,
|
| 381 |
+
"engine_power": engine_power,
|
| 382 |
+
"fuel": fuel,
|
| 383 |
+
"paint_color": paint_color,
|
| 384 |
+
"car_type": car_type,
|
| 385 |
+
"private_parking_available": private_parking_available,
|
| 386 |
+
"has_gps": has_gps,
|
| 387 |
+
"has_air_conditioning": has_air_conditioning,
|
| 388 |
+
"automatic_car": automatic_car,
|
| 389 |
+
"has_getaround_connect": has_getaround_connect,
|
| 390 |
+
"has_speed_regulator": has_speed_regulator,
|
| 391 |
+
"winter_tires": winter_tires
|
|
|
|
|
|
|
| 392 |
}
|
| 393 |
|
| 394 |
if st.button("🔮 Prédire le prix"):
|