Jamal914 commited on
Commit
3e0b35a
1 Parent(s): 3118d9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -61,11 +61,12 @@ def predict(tenure, montant, freq_rech, revenue, arpu, freq, data_vol, on_net, o
61
 
62
 
63
  churn_label = "Customer will churn" if prediction == 1 else "Customer will not churn"
64
- result = {
65
- 'Churn Prediction': churn_label,
66
- }
67
- print(result['Churn Prediction'])
68
- return result
 
69
 
70
 
71
 
@@ -90,7 +91,7 @@ iface = gr.Interface(
90
  gr.inputs.Slider(minimum=0, maximum=62, label="REGULARITY")
91
  ],
92
 
93
- outputs='Churn Prediction',
94
  title="Team Paris Customer Churn Prediction App",
95
  description="Let's Get Started With Some Predictions!"
96
  )
 
61
 
62
 
63
  churn_label = "Customer will churn" if prediction == 1 else "Customer will not churn"
64
+ return churn_label
65
+ # result = {
66
+ # 'Churn Prediction': churn_label,
67
+ # }
68
+ # print(result['Churn Prediction'])
69
+ # return result
70
 
71
 
72
 
 
91
  gr.inputs.Slider(minimum=0, maximum=62, label="REGULARITY")
92
  ],
93
 
94
+ outputs=gr.outputs.Label(),
95
  title="Team Paris Customer Churn Prediction App",
96
  description="Let's Get Started With Some Predictions!"
97
  )