Gyimah3 commited on
Commit
b15e662
·
1 Parent(s): dafd19b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -75,7 +75,7 @@ def predict_churn(
75
  df[cat_cols] = df[cat_cols].astype("object")
76
 
77
  # Passing data to pipeline to make prediction
78
- output = pipeline_of_my_app.predict_proba(df)
79
 
80
  # Labelling Model output
81
  if output == 0:
@@ -120,4 +120,4 @@ with gr.Blocks() as demo:
120
  make_prediction.click(predict_churn, inputs, output_prediction)
121
 
122
  # Launching app
123
- demo.launch(debug=True)
 
75
  df[cat_cols] = df[cat_cols].astype("object")
76
 
77
  # Passing data to pipeline to make prediction
78
+ output = pipeline_of_my_app.predict(df)
79
 
80
  # Labelling Model output
81
  if output == 0:
 
120
  make_prediction.click(predict_churn, inputs, output_prediction)
121
 
122
  # Launching app
123
+ demo.launch(debug=True,inline=False,)