vijayendras commited on
Commit
cfb0481
·
verified ·
1 Parent(s): 996beb3

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -5
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
- #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
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__':