Spaces:
Sleeping
Sleeping
Update modules/churn_analysis.py
Browse files
modules/churn_analysis.py
CHANGED
@@ -76,7 +76,7 @@ def predict(SeniorCitizen, Partner, Dependents, tenure,
|
|
76 |
|
77 |
input_interface = []
|
78 |
|
79 |
-
with gr.Blocks(theme=gr.themes.Soft()) as
|
80 |
|
81 |
Title = gr.Label('Customer Churn Prediction App')
|
82 |
|
@@ -140,5 +140,3 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
140 |
|
141 |
predict_btn.click(fn=predict, inputs=input_interface, outputs=output_interface)
|
142 |
|
143 |
-
if __name__ == "__main__":
|
144 |
-
demo.launch()
|
|
|
76 |
|
77 |
input_interface = []
|
78 |
|
79 |
+
with gr.Blocks(theme=gr.themes.Soft()) as churn_interface:
|
80 |
|
81 |
Title = gr.Label('Customer Churn Prediction App')
|
82 |
|
|
|
140 |
|
141 |
predict_btn.click(fn=predict, inputs=input_interface, outputs=output_interface)
|
142 |
|
|
|
|