rmdhirr commited on
Commit
6bbe252
1 Parent(s): cd663f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ def predict_phishing(url, html):
74
  new_html_padded = pad_sequences(new_html_sequences, maxlen=max_html_length, padding='post', truncating='post')
75
 
76
  new_predictions_prob = model.predict([new_url_padded, new_html_padded])
77
- new_predictions = (new_predictions_prob > 0.5).astype(int)
78
 
79
  predicted_category = label_encoder.inverse_transform(new_predictions)[0]
80
  predicted_probability = f"{new_predictions_prob[0][0]:.4f}"
 
74
  new_html_padded = pad_sequences(new_html_sequences, maxlen=max_html_length, padding='post', truncating='post')
75
 
76
  new_predictions_prob = model.predict([new_url_padded, new_html_padded])
77
+ new_predictions = (new_predictions_prob > 0.5).astype(int) # Adjust threshold if needed
78
 
79
  predicted_category = label_encoder.inverse_transform(new_predictions)[0]
80
  predicted_probability = f"{new_predictions_prob[0][0]:.4f}"