Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,9 +54,9 @@ def make_prediction(REGION, TENURE, MONTANT, FREQUENCE_RECH, REVENUE, ARPU_SEGME
|
|
54 |
|
55 |
|
56 |
#create the input components for gradio
|
57 |
-
REGION = gr.
|
58 |
-
TENURE = gr.
|
59 |
-
MONTANT = gr.
|
60 |
FREQUENCE_RECH = gr.Number()
|
61 |
REVENUE = gr.Number()
|
62 |
ARPU_SEGMENT = gr.Number()
|
@@ -67,14 +67,14 @@ ORANGE = gr.Number()
|
|
67 |
TIGO = gr.Number()
|
68 |
ZONE1 = gr.Number()
|
69 |
ZONE2 = gr.Number()
|
70 |
-
MRG = gr.
|
71 |
REGULARITY = gr.Number()
|
72 |
FREQ_TOP_PACK = gr.Number()
|
73 |
|
74 |
output = gr.Textbox(label='Prediction')
|
75 |
#create the interface component
|
76 |
|
77 |
-
app = gr.Interface(fn =make_prediction,
|
78 |
TENURE,
|
79 |
MONTANT,
|
80 |
FREQUENCE_RECH,
|
@@ -94,4 +94,4 @@ app = gr.Interface(fn =make_prediction,Input =[REGION,
|
|
94 |
description="Enter the feilds Below and click the submit button to Make Your Prediction",
|
95 |
outputs = output)
|
96 |
|
97 |
-
app.launch(debug =
|
|
|
54 |
|
55 |
|
56 |
#create the input components for gradio
|
57 |
+
REGION = gr.Dropdown(choices =['DAKAR', 'THIES', 'SAINT-LOUIS', 'LOUGA', 'KAOLACK', 'DIOURBEL', 'TAMBACOUNDA' 'KAFFRINE,KOLDA', 'FATICK', 'MATAM', 'ZIGUINCHOR', 'SEDHIOU', 'KEDOUGOU'])
|
58 |
+
TENURE = gr.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 |
+
MONTANT = gr.Number()
|
60 |
FREQUENCE_RECH = gr.Number()
|
61 |
REVENUE = gr.Number()
|
62 |
ARPU_SEGMENT = gr.Number()
|
|
|
67 |
TIGO = gr.Number()
|
68 |
ZONE1 = gr.Number()
|
69 |
ZONE2 = gr.Number()
|
70 |
+
MRG = gr.Dropdown(choices =['NO'])
|
71 |
REGULARITY = gr.Number()
|
72 |
FREQ_TOP_PACK = gr.Number()
|
73 |
|
74 |
output = gr.Textbox(label='Prediction')
|
75 |
#create the interface component
|
76 |
|
77 |
+
app = gr.Interface(fn =make_prediction,inputs =[REGION,
|
78 |
TENURE,
|
79 |
MONTANT,
|
80 |
FREQUENCE_RECH,
|
|
|
94 |
description="Enter the feilds Below and click the submit button to Make Your Prediction",
|
95 |
outputs = output)
|
96 |
|
97 |
+
app.launch(debug = True)
|