Update app.py
Browse files
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 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
|
|
69 |
|
70 |
|
71 |
|
@@ -90,7 +91,7 @@ iface = gr.Interface(
|
|
90 |
gr.inputs.Slider(minimum=0, maximum=62, label="REGULARITY")
|
91 |
],
|
92 |
|
93 |
-
outputs=
|
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 |
)
|