slickdata commited on
Commit
580fef6
·
1 Parent(s): 342f1ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -16
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 = [ REGION = gr.inputs.Dropdown(choices =['DAKAR', 'THIES', 'SAINT-LOUIS', 'LOUGA', 'KAOLACK', 'DIOURBEL', 'TAMBACOUNDA' 'KAFFRINE,KOLDA', 'FATICK', 'MATAM', 'ZIGUINCHOR', 'SEDHIOU', 'KEDOUGOU']),
58
- TENURE = 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
- MONTANT = gr.inputs.Number(),
60
- FREQUENCE_RECH = gr.Number(),
61
- REVENUE = gr.Number(),
62
- ARPU_SEGMENT = gr.Number(),
63
- FREQUENCE = gr.Number(),
64
- DATA_VOLUME = gr.Number()]
65
 
66
- input_col2 = [ON_NET = gr.Number(),
67
- ORANGE = gr.Number(),
68
- TIGO = gr.Number(),
69
- ZONE1 = gr.Number(),
70
- ZONE2 = gr.Number(),
71
- MRG = gr.inputs.Dropdown(choices =['NO']),
72
- REGULARITY = gr.Number(),
73
- FREQ_TOP_PACK = gr.Number()]
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