Priyanka-Kumavat-At-TE commited on
Commit
21c7c35
1 Parent(s): 1e3662f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -138,10 +138,10 @@ def main():
138
 
139
  # Call the predict method of the MarkovChainClassifier instance
140
  pred = model.predict()
141
- if pred == 'T':
142
- st.write(f"UserID: {user_id}, Prediction: Visitor is likely to convert into a customer.")
143
- else:
144
  st.write(f"UserID: {user_id}, Prediction: Visitor is unlikely to convert into a customer.")
 
 
145
 
146
  # st.subheader("Predict Conversion")
147
  # # Upload ML config file using Streamlit's file_uploader function
 
138
 
139
  # Call the predict method of the MarkovChainClassifier instance
140
  pred = model.predict()
141
+ if pred == 'F':
 
 
142
  st.write(f"UserID: {user_id}, Prediction: Visitor is unlikely to convert into a customer.")
143
+ else:
144
+ st.write(f"UserID: {user_id}, Prediction: Visitor is likely to convert into a customer.")
145
 
146
  # st.subheader("Predict Conversion")
147
  # # Upload ML config file using Streamlit's file_uploader function