Spaces:
Runtime error
Runtime error
Update app.py
Browse files4 unmodified lines567891038 unmodified lines49505152535455565758596061626364656667686970717273747576774 unmodified linesimport pandas as pdimport osdef load_model():cwd = os.getcwd()38 unmodified linesreturn "Customer will not Churn"# Create the input components for gradioinput_col1 = [gr.Dropdown(['DAKAR', 'THIES', 'SAINT-LOUIS', 'LOUGA', 'KAOLACK', 'DIOURBEL', 'TAMBACOUNDA', 'KAFFRINE', 'KOLDA']),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']),gr.Number(),gr.Number(),gr.Number(),gr.Number(),gr.Number(),gr.Number(),gr.Number()]input_col2 = [gr.Number(),gr.Number(),gr.Number(),gr.Number(),gr.Dropdown(['NO']),gr.Number(),gr.Number()]output = gr.Textbox(label='Prediction')# Create the interface componentapp = gr.Interface(fn=make_prediction, inputs=[input_col1, input_col2],4 unmodified lines5678910111238 unmodified lines5152535455565758596061626364656667686970717273747576777879804 unmodified linesimport pandas as pdimport osfrom gradio.components import Dropdown, Number, Textboxdef load_model():cwd = os.getcwd()38 unmodified linesreturn "Customer will not Churn"# Create the input components for gradioinput_col1 = [Dropdown(choices=['DAKAR', 'THIES', 'SAINT-LOUIS', 'LOUGA', 'KAOLACK', 'DIOURBEL', 'TAMBACOUNDA', 'KAFFRINE', 'KOLDA']),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']),Number(),Number(),Number(),Number(),Number(),Number(),Number()]input_col2 = [Number(),Number(),Number(),Number(),Number(),Number(),Number(),Number(),Number(),Dropdown(choices=['NO']),Number(),Number()]output = Textbox(label='Prediction')# Create the interface componentapp = gr.Interface(fn=make_prediction, inputs=[input_col1, input_col2],
app.py+24-21