YEHTUT commited on
Commit
773c904
·
verified ·
1 Parent(s): 3202eb8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -150,7 +150,7 @@ if st.button("Predict"):
150
  # Display the prediction using st.write
151
  st.write(f"Prediction for the selected URL ({selected_url}): **{prediction[0]}**")
152
  # Display the prediction result
153
- if prediction[0] == 0:
154
  st.success("The website is not a phishing website.")
155
  st.markdown(f'<img src="data:image/gif;base64,{data_url_ok}" alt="cat gif">', unsafe_allow_html=True,)
156
  else:
 
150
  # Display the prediction using st.write
151
  st.write(f"Prediction for the selected URL ({selected_url}): **{prediction[0]}**")
152
  # Display the prediction result
153
+ if prediction[0] == 0 or prediction[0] == "legitimate":
154
  st.success("The website is not a phishing website.")
155
  st.markdown(f'<img src="data:image/gif;base64,{data_url_ok}" alt="cat gif">', unsafe_allow_html=True,)
156
  else: