Spaces:
Running
Running
made change
Browse files- preditormodels.py +3 -1
preditormodels.py
CHANGED
|
@@ -50,7 +50,9 @@ class PhishingPredictor:
|
|
| 50 |
final_input = np.concatenate([bert_emb, url_feats], axis=1)
|
| 51 |
|
| 52 |
|
| 53 |
-
|
|
|
|
|
|
|
| 54 |
|
| 55 |
prediction = "PHISHING" if prob > 0.5 else "SAFE"
|
| 56 |
|
|
|
|
| 50 |
final_input = np.concatenate([bert_emb, url_feats], axis=1)
|
| 51 |
|
| 52 |
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
prob = self.xgb_model.inplace_predict(final_input)[0][1]
|
| 56 |
|
| 57 |
prediction = "PHISHING" if prob > 0.5 else "SAFE"
|
| 58 |
|