Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 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="❌")
|