Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -218,4 +218,7 @@ if st.button("Predict"):
|
|
| 218 |
prediction_proba = model.predict_proba(input_data)[0, 1]
|
| 219 |
prediction = (prediction_proba >= classification_threshold).astype(int)
|
| 220 |
result = "likely to buy" if prediction == 1 else "not likely to buy"
|
| 221 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
| 218 |
prediction_proba = model.predict_proba(input_data)[0, 1]
|
| 219 |
prediction = (prediction_proba >= classification_threshold).astype(int)
|
| 220 |
result = "likely to buy" if prediction == 1 else "not likely to buy"
|
| 221 |
+
st.subheader("Prediction Result")
|
| 222 |
+
st.markdown(
|
| 223 |
+
f"Based on the information provided, the customer is **{result}** the new tourism package."
|
| 224 |
+
)
|