Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,23 +54,23 @@ def make_prediction(REGION, TENURE, MONTANT, FREQUENCE_RECH, REVENUE, ARPU_SEGME
|
|
| 54 |
|
| 55 |
|
| 56 |
#create the input components for gradio
|
| 57 |
-
input_col1 = [
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
|
| 66 |
-
input_col2 = [
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
|
| 75 |
output = gr.Textbox(label='Prediction')
|
| 76 |
#create the interface component
|
|
|
|
| 54 |
|
| 55 |
|
| 56 |
#create the input components for gradio
|
| 57 |
+
input_col1 = [ gr.inputs.Dropdown(choices =['DAKAR', 'THIES', 'SAINT-LOUIS', 'LOUGA', 'KAOLACK', 'DIOURBEL', 'TAMBACOUNDA' 'KAFFRINE,KOLDA', 'FATICK', 'MATAM', 'ZIGUINCHOR', 'SEDHIOU', 'KEDOUGOU']),
|
| 58 |
+
gr.inputs.Dropdown(choices =['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']),
|
| 59 |
+
gr.inputs.Number(),
|
| 60 |
+
gr.Number(),
|
| 61 |
+
gr.Number(),
|
| 62 |
+
gr.Number(),
|
| 63 |
+
gr.Number(),
|
| 64 |
+
gr.Number()]
|
| 65 |
|
| 66 |
+
input_col2 = [ gr.Number(),
|
| 67 |
+
gr.Number(),
|
| 68 |
+
gr.Number(),
|
| 69 |
+
gr.Number(),
|
| 70 |
+
gr.Number(),
|
| 71 |
+
gr.inputs.Dropdown(choices =['NO']),
|
| 72 |
+
gr.Number(),
|
| 73 |
+
gr.Number()]
|
| 74 |
|
| 75 |
output = gr.Textbox(label='Prediction')
|
| 76 |
#create the interface component
|