Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,6 +119,7 @@ async def predict(predictionFeatures: RentalFeatures):
|
|
| 119 |
# ]
|
| 120 |
|
| 121 |
car_caracteristic = pd.DataFrame([predictionFeatures.model_dump()])
|
|
|
|
| 122 |
#car_caracteristic = pd.DataFrame({"Car": pf})
|
| 123 |
|
| 124 |
# Log model from mlflow
|
|
@@ -133,4 +134,5 @@ async def predict(predictionFeatures: RentalFeatures):
|
|
| 133 |
"prediction": prediction.tolist()[0],
|
| 134 |
"detail": "Prédiction du tarif journalier (nul si aucun modèle : model.pkl).",
|
| 135 |
}
|
|
|
|
| 136 |
return response
|
|
|
|
| 119 |
# ]
|
| 120 |
|
| 121 |
car_caracteristic = pd.DataFrame([predictionFeatures.model_dump()])
|
| 122 |
+
print(car_caracteristic)
|
| 123 |
#car_caracteristic = pd.DataFrame({"Car": pf})
|
| 124 |
|
| 125 |
# Log model from mlflow
|
|
|
|
| 134 |
"prediction": prediction.tolist()[0],
|
| 135 |
"detail": "Prédiction du tarif journalier (nul si aucun modèle : model.pkl).",
|
| 136 |
}
|
| 137 |
+
print(response)
|
| 138 |
return response
|