vijayendras commited on
Commit
5dfac60
·
verified ·
1 Parent(s): 4eb4e49

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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