Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -65,5 +65,5 @@ classification_threshold = 0.45
|
|
| 65 |
if st.button("predict"):
|
| 66 |
predict_proba = model.predict_proba(input_data)[0, 1]
|
| 67 |
prediction = (predict_proba >= classification_threshold).astype(int)
|
| 68 |
-
result = "
|
| 69 |
-
st.write(f"Based on the information provided, the customer is
|
|
|
|
| 65 |
if st.button("predict"):
|
| 66 |
predict_proba = model.predict_proba(input_data)[0, 1]
|
| 67 |
prediction = (predict_proba >= classification_threshold).astype(int)
|
| 68 |
+
result = "likely to purchase the package" if prediction == 1 else "Not likely to purchase the package"
|
| 69 |
+
st.write(f"Based on the information provided, the customer is {result}.")
|