Spaces:
Sleeping
Sleeping
update main.py temporary AB
#1
by
raharjo
- opened
main.py
CHANGED
|
@@ -129,7 +129,7 @@ async def predict(request: Request, requess: Req = Depends(form_req)):
|
|
| 129 |
prediction = model.predict(data)
|
| 130 |
output = prediction[0]
|
| 131 |
|
| 132 |
-
output_text = "Legitimate" if output == 1 else "Phishing"
|
| 133 |
|
| 134 |
# Render index.html with prediction results
|
| 135 |
json_compatible_resp_data = jsonable_encoder(Resp(url=requess.url, label=output_text))
|
|
|
|
| 129 |
prediction = model.predict(data)
|
| 130 |
output = prediction[0]
|
| 131 |
|
| 132 |
+
output_text = output #"Legitimate" if output == 1 else "Phishing"
|
| 133 |
|
| 134 |
# Render index.html with prediction results
|
| 135 |
json_compatible_resp_data = jsonable_encoder(Resp(url=requess.url, label=output_text))
|