gdleds commited on
Commit
e88ff66
·
1 Parent(s): 206ce6b

grosse modif

Browse files
Files changed (1) hide show
  1. app.py +14 -15
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
- "input": [[
379
- model_key,
380
- mileage,
381
- engine_power,
382
- fuel,
383
- paint_color,
384
- car_type,
385
- private_parking_available,
386
- has_gps,
387
- has_air_conditioning,
388
- automatic_car,
389
- has_getaround_connect,
390
- has_speed_regulator,
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"):