Rawiwan1912 commited on
Commit
7faf694
·
verified ·
1 Parent(s): 7947f29

Update modules/churn_analysis.py

Browse files
Files changed (1) hide show
  1. modules/churn_analysis.py +1 -3
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 demo:
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