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

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -59,7 +59,9 @@ def predict_sales():
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
 
59
 
60
  # Return the prediction as a JSON response
61
  #return jsonify({'Sales': prediction})
62
+ #return jsonify({'Sales': float(prediction)})
63
+ return jsonify({'Predicted Sales Conversion Status (0/1)': int(prediction)})
64
+
65
 
66
 
67
  # Run the Flask app in debug mode if this script is executed directly