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