Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -58,7 +58,8 @@ def predict_sales():
|
|
| 58 |
prediction = model.predict(input_data)[0]
|
| 59 |
|
| 60 |
# Return the prediction as a JSON response
|
| 61 |
-
return jsonify({'Sales': prediction})
|
|
|
|
| 62 |
|
| 63 |
|
| 64 |
# Run the Flask app in debug mode if this script is executed directly
|
|
|
|
| 58 |
prediction = model.predict(input_data)[0]
|
| 59 |
|
| 60 |
# Return the prediction as a JSON response
|
| 61 |
+
#return jsonify({'Sales': prediction})
|
| 62 |
+
return jsonify({'Sales': float(prediction)})
|
| 63 |
|
| 64 |
|
| 65 |
# Run the Flask app in debug mode if this script is executed directly
|