Spaces:
Runtime error
Runtime error
update
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def churn_prediction(CreditScore,Gender,Age,Tenure,Balance,NumOfProducts,HasCrCa
|
|
30 |
churn_prob_d = round(round(pred,2) * 100)
|
31 |
non_churn_prob_d = 100 - churn_prob_d
|
32 |
non_churn_prob = str(round(1-pred,2))
|
33 |
-
return {f"probability customer will exit
|
34 |
|
35 |
|
36 |
import gradio as gr
|
|
|
30 |
churn_prob_d = round(round(pred,2) * 100)
|
31 |
non_churn_prob_d = 100 - churn_prob_d
|
32 |
non_churn_prob = str(round(1-pred,2))
|
33 |
+
return {f"probability customer will exit: {churn_prob_d}%":churn_prob , f"probability customer will stay: { non_churn_prob_d}%": non_churn_prob}
|
34 |
|
35 |
|
36 |
import gradio as gr
|