Spaces:
Runtime error
Runtime error
Update app.py
Browse files53 unmodified lines545556575859606162636465666768697071727374757677787980818283848586878889909192939495969753 unmodified lines#create the input components for gradioREGION = gr.inputs.Dropdown(choices =['DAKAR', 'THIES', 'SAINT-LOUIS', 'LOUGA', 'KAOLACK', 'DIOURBEL', 'TAMBACOUNDA' 'KAFFRINE,KOLDA', 'FATICK', 'MATAM', 'ZIGUINCHOR', 'SEDHIOU', 'KEDOUGOU'])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'])MONTANT = gr.inputs.Number()FREQUENCE_RECH = gr.Number()REVENUE = gr.Number()ARPU_SEGMENT = gr.Number()FREQUENCE = gr.Number()DATA_VOLUME = gr.Number()ON_NET = gr.Number()ORANGE = gr.Number()TIGO = gr.Number()ZONE1 = gr.Number()ZONE2 = gr.Number()MRG = gr.inputs.Dropdown(choices =['NO'])REGULARITY = gr.Number()FREQ_TOP_PACK = gr.Number()output = gr.Textbox(label='Prediction')#create the interface componentapp = gr.Interface(fn =make_prediction,inputs =[REGION,TENURE,MONTANT,FREQUENCE_RECH,REVENUE,ARPU_SEGMENT,FREQUENCE,DATA_VOLUME,ON_NET,ORANGE,TIGO,ZONE1,ZONE2,MRG,REGULARITY,FREQ_TOP_PACK],title ="Customer Churn Predictor",description="Enter the feilds Below and click the submit button to Make Your Prediction",outputs = output)app.launch(debug = True)53 unmodified lines545556575859606162636465666768697071727374757677787980818253 unmodified lines#create the input components for gradioinput_col1 = [REGION = gr.inputs.Dropdown(choices =['DAKAR', 'THIES', 'SAINT-LOUIS', 'LOUGA', 'KAOLACK', 'DIOURBEL', 'TAMBACOUNDA' 'KAFFRINE,KOLDA', 'FATICK', 'MATAM', 'ZIGUINCHOR', 'SEDHIOU', 'KEDOUGOU']),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']),MONTANT = gr.inputs.Number(),FREQUENCE_RECH = gr.Number(),REVENUE = gr.Number(),ARPU_SEGMENT = gr.Number(),FREQUENCE = gr.Number(),DATA_VOLUME = gr.Number()]input_col2 = [ON_NET = gr.Number(),ORANGE = gr.Number(),TIGO = gr.Number(),ZONE1 = gr.Number(),ZONE2 = gr.Number(),MRG = gr.inputs.Dropdown(choices =['NO']),REGULARITY = gr.Number(),FREQ_TOP_PACK = gr.Number()]output = gr.Textbox(label='Prediction')#create the interface componentapp = gr.Interface(fn =make_prediction,inputs=[input_col1, input_col2],title ="Customer Churn Predictor",description="Enter the fields below and click the submit button to Make Your Prediction",outputs = output)app.launch(debug = True)
app.py+18-33