lcsekar commited on
Commit
a60125c
·
verified ·
1 Parent(s): fba8802

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -80,4 +80,7 @@ if st.button("Predict"):
80
  prediction = model.predict(input_data)[0]
81
  logger.info(f"Prediction: {prediction}")
82
  st.subheader("Prediction Result:")
83
- st.success(f"The customer is {'likely' if prediction == 1 else 'not likely'} to purchase the tourism package.")
 
 
 
 
80
  prediction = model.predict(input_data)[0]
81
  logger.info(f"Prediction: {prediction}")
82
  st.subheader("Prediction Result:")
83
+ if prediction == 1:
84
+ st.success("The customer is likely to purchase the tourism package.", icon="✅")
85
+ else:
86
+ st.error("The customer is NOT likely to purchase the tourism package.", icon="❌")