albin commited on
Commit
ed658f7
·
1 Parent(s): 2c1f7a9

use proba instead of values for result

Browse files
Files changed (1) hide show
  1. main.py +0 -1
main.py CHANGED
@@ -129,7 +129,6 @@ async def predict(request: Request, requess: Req = Depends(form_req)):
129
  prediction_proba = model.predict_proba(data)[:, 1]
130
  threshold = 0.1
131
  output = 1 if prediction_proba >= threshold else 0
132
- output.astype(int)
133
 
134
  output_text = "Legitimate" if output == 1 else "Phishing"
135
 
 
129
  prediction_proba = model.predict_proba(data)[:, 1]
130
  threshold = 0.1
131
  output = 1 if prediction_proba >= threshold else 0
 
132
 
133
  output_text = "Legitimate" if output == 1 else "Phishing"
134