Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,7 @@ def predict_sales_total():
|
|
| 55 |
# When we send this value directly within a JSON response, Flask's jsonify function encounters a datatype error
|
| 56 |
|
| 57 |
# Return the actual price
|
| 58 |
-
return jsonify({'Predicted Price
|
| 59 |
|
| 60 |
|
| 61 |
# Define an endpoint for batch prediction (POST request)
|
|
|
|
| 55 |
# When we send this value directly within a JSON response, Flask's jsonify function encounters a datatype error
|
| 56 |
|
| 57 |
# Return the actual price
|
| 58 |
+
return jsonify({'Predicted Price': float(predicted_price)})
|
| 59 |
|
| 60 |
|
| 61 |
# Define an endpoint for batch prediction (POST request)
|