Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -49,17 +49,17 @@ with gr.Blocks() as app:
|
|
49 |
gr.Slider(label="Enter monthly charges", minimum=18.40, maximum=118.65)
|
50 |
]
|
51 |
|
52 |
-
|
53 |
input_interface = []
|
54 |
input_interface.extend(input_interface_column_1)
|
55 |
input_interface.extend(input_interface_column_2)
|
56 |
|
57 |
-
|
58 |
with gr.Row():
|
59 |
predict_btn = gr.Button('Predict')
|
60 |
output_interface = gr.Label(label="Churn Prediction Result")
|
61 |
|
62 |
-
|
63 |
with gr.Accordion("Open for information on inputs", open=False):
|
64 |
gr.Markdown("""
|
65 |
**Input Descriptions:**
|
@@ -75,6 +75,6 @@ with gr.Blocks() as app:
|
|
75 |
- MonthlyCharges
|
76 |
""")
|
77 |
|
78 |
-
|
79 |
predict_btn.click(fn=predict, inputs=input_interface, outputs=output_interface)
|
80 |
app.launch(share=True)
|
|
|
49 |
gr.Slider(label="Enter monthly charges", minimum=18.40, maximum=118.65)
|
50 |
]
|
51 |
|
52 |
+
|
53 |
input_interface = []
|
54 |
input_interface.extend(input_interface_column_1)
|
55 |
input_interface.extend(input_interface_column_2)
|
56 |
|
57 |
+
|
58 |
with gr.Row():
|
59 |
predict_btn = gr.Button('Predict')
|
60 |
output_interface = gr.Label(label="Churn Prediction Result")
|
61 |
|
62 |
+
|
63 |
with gr.Accordion("Open for information on inputs", open=False):
|
64 |
gr.Markdown("""
|
65 |
**Input Descriptions:**
|
|
|
75 |
- MonthlyCharges
|
76 |
""")
|
77 |
|
78 |
+
|
79 |
predict_btn.click(fn=predict, inputs=input_interface, outputs=output_interface)
|
80 |
app.launch(share=True)
|