Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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
|