Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -42,7 +42,7 @@ def predict_churn():
|
|
| 42 |
prediction_label = "churn" if prediction == 1 else "not churn"
|
| 43 |
|
| 44 |
# Return the prediction as a JSON response
|
| 45 |
-
return jsonify({'
|
| 46 |
|
| 47 |
# Define an endpoint to predict churn for a batch of customers
|
| 48 |
@churn_predictor_api.post('/v1/customerbatch')
|
|
|
|
| 42 |
prediction_label = "churn" if prediction == 1 else "not churn"
|
| 43 |
|
| 44 |
# Return the prediction as a JSON response
|
| 45 |
+
return jsonify({'Prediction': prediction_label})
|
| 46 |
|
| 47 |
# Define an endpoint to predict churn for a batch of customers
|
| 48 |
@churn_predictor_api.post('/v1/customerbatch')
|