subhash33 commited on
Commit
7e11c7d
·
verified ·
1 Parent(s): 96ed23b

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = "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 likely to {result}.")
 
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}.")