Update app.py
Browse files
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.
|
| 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,)
|