Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|