Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -49,33 +49,27 @@ def make_prediction(REGION, TENURE, MONTANT, FREQUENCE_RECH, REVENUE, ARPU_SEGME
|
|
49 |
return "Customer will not Churn"
|
50 |
|
51 |
# Create the input components for gradio
|
52 |
-
input_col1 =
|
53 |
-
[
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
],
|
64 |
-
label="Column 1"
|
65 |
-
)
|
66 |
|
67 |
-
input_col2 =
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
],
|
77 |
-
label="Column 2"
|
78 |
-
)
|
79 |
|
80 |
output = gr.Textbox(label='Prediction')
|
81 |
|
|
|
49 |
return "Customer will not Churn"
|
50 |
|
51 |
# Create the input components for gradio
|
52 |
+
input_col1 = [
|
53 |
+
gr.Dropdown(['DAKAR', 'THIES', 'SAINT-LOUIS', 'LOUGA', 'KAOLACK', 'DIOURBEL', 'TAMBACOUNDA', 'KAFFRINE', 'KOLDA']),
|
54 |
+
gr.Dropdown(['K > 24 month', 'I 18-21 month', 'H 15-18 month', 'G 12-15 month', 'J 21-24 month', 'F 9-12 month', 'E 6-9 month', 'D 3-6 month']),
|
55 |
+
gr.Number(),
|
56 |
+
gr.Number(),
|
57 |
+
gr.Number(),
|
58 |
+
gr.Number(),
|
59 |
+
gr.Number(),
|
60 |
+
gr.Number(),
|
61 |
+
gr.Number()
|
62 |
+
]
|
|
|
|
|
|
|
63 |
|
64 |
+
input_col2 = [
|
65 |
+
gr.Number(),
|
66 |
+
gr.Number(),
|
67 |
+
gr.Number(),
|
68 |
+
gr.Number(),
|
69 |
+
gr.Dropdown(['NO']),
|
70 |
+
gr.Number(),
|
71 |
+
gr.Number()
|
72 |
+
]
|
|
|
|
|
|
|
73 |
|
74 |
output = gr.Textbox(label='Prediction')
|
75 |
|