YEHTUT commited on
Commit
3202eb8
·
verified ·
1 Parent(s): 412962c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -147,7 +147,8 @@ if st.button("Predict"):
147
  # Make predictions
148
  prediction = model.predict(X_new_scaled)
149
  y_pred_proba = model.predict_proba(X_new_scaled)
150
-
 
151
  # Display the prediction result
152
  if prediction[0] == 0:
153
  st.success("The website is not a phishing website.")
 
147
  # Make predictions
148
  prediction = model.predict(X_new_scaled)
149
  y_pred_proba = model.predict_proba(X_new_scaled)
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.")