debasishdas1985 commited on
Commit
ebf5fce
·
verified ·
1 Parent(s): c5430bd

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def predict_lead():
46
  prediction = model.predict(input_data).tolist()[0]
47
 
48
  # Return the prediction as a JSON response
49
- return jsonify({'Lead': prediction})
50
 
51
 
52
  # Run the Flask app in debug mode
 
46
  prediction = model.predict(input_data).tolist()[0]
47
 
48
  # Return the prediction as a JSON response
49
+ return jsonify({'Lead': "Positive" if prediction > 0.7 else "Negative"})
50
 
51
 
52
  # Run the Flask app in debug mode