RDA9527 commited on
Commit
e91fbc5
·
verified ·
1 Parent(s): 91ab7f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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({'Churn expected?': prediction_label})
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')