Spaces:
Sleeping
Sleeping
grosse modif
Browse files
app.py
CHANGED
|
@@ -351,8 +351,11 @@ with tab2:
|
|
| 351 |
|
| 352 |
st.markdown("""
|
| 353 |
+ corrélation prix ↔ puissance moteur
|
|
|
|
| 354 |
– corrélation prix ↔ kilométrage
|
|
|
|
| 355 |
Transmission automatique = + valeur ajoutée
|
|
|
|
| 356 |
Présence de GPS = + valeur ajoutée """)
|
| 357 |
|
| 358 |
with tab3:
|
|
@@ -391,21 +394,6 @@ with tab3:
|
|
| 391 |
"winter_tires": winter_tires
|
| 392 |
}
|
| 393 |
|
| 394 |
-
# if st.button("🔮 Prédire le prix"):
|
| 395 |
-
# try:
|
| 396 |
-
# response = requests.post("https://gdleds-api-get.hf.space/predict", json=payload)
|
| 397 |
-
# if response.status_code == 200:
|
| 398 |
-
# result = response.json()
|
| 399 |
-
# st.write("📥 Réponse brute API :", result) # Debug
|
| 400 |
-
# pred = result.get("predicted_price_per_day") # <-- clé corrigée
|
| 401 |
-
# st.success(f"💰 Prix estimé : {pred} $/jour")
|
| 402 |
-
# else:
|
| 403 |
-
# st.error(f"Erreur API ({response.status_code}) : {response.text}")
|
| 404 |
-
# except Exception as e:
|
| 405 |
-
# st.error(f"⚠️ Impossible d'appeler l'API : {e}")
|
| 406 |
-
|
| 407 |
-
|
| 408 |
-
|
| 409 |
if st.button("🔮 Prédire le prix"):
|
| 410 |
try:
|
| 411 |
response = requests.post("https://gdleds-api-get.hf.space/predict", json=payload)
|
|
|
|
| 351 |
|
| 352 |
st.markdown("""
|
| 353 |
+ corrélation prix ↔ puissance moteur
|
| 354 |
+
|
| 355 |
– corrélation prix ↔ kilométrage
|
| 356 |
+
|
| 357 |
Transmission automatique = + valeur ajoutée
|
| 358 |
+
|
| 359 |
Présence de GPS = + valeur ajoutée """)
|
| 360 |
|
| 361 |
with tab3:
|
|
|
|
| 394 |
"winter_tires": winter_tires
|
| 395 |
}
|
| 396 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 397 |
if st.button("🔮 Prédire le prix"):
|
| 398 |
try:
|
| 399 |
response = requests.post("https://gdleds-api-get.hf.space/predict", json=payload)
|