Spaces:
Runtime error
Runtime error
Update prediction.py
Browse files- prediction.py +4 -2
prediction.py
CHANGED
@@ -85,7 +85,9 @@ def run():
|
|
85 |
|
86 |
# Predict
|
87 |
y_pred_inf = rfc.predict(data_inf_final)
|
88 |
-
|
89 |
-
|
|
|
|
|
90 |
|
91 |
if __name__ == '__main__': run()
|
|
|
85 |
|
86 |
# Predict
|
87 |
y_pred_inf = rfc.predict(data_inf_final)
|
88 |
+
prediction = 'Not Cancel' if y_pred_inf == 0 else 'Cancel'
|
89 |
+
|
90 |
+
st.write('# Prediction: ', prediction)
|
91 |
+
st.write('If the prediction shows "Cancel", there is a possibility that the booking will be canceled by the customer.')
|
92 |
|
93 |
if __name__ == '__main__': run()
|