From a24d25e950814476b3d6ee0ae965340c4291cbb4 Mon Sep 17 00:00:00 2001 From: SagaRut Date: Wed, 26 Jun 2024 12:04:13 +0200 Subject: [PATCH] new old version --- app-frontend/templates/index.html | 4 ++-- app-service/app.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app-frontend/templates/index.html b/app-frontend/templates/index.html index ef004c4..b6a13ac 100644 --- a/app-frontend/templates/index.html +++ b/app-frontend/templates/index.html @@ -40,8 +40,8 @@

Indicate below if you think the URL is phishing. You can then compare your understanding of phishing URLs with the prediction of the model.

diff --git a/app-service/app.py b/app-service/app.py index 1450d67..46d4b03 100644 --- a/app-service/app.py +++ b/app-service/app.py @@ -49,7 +49,7 @@ def index(): url_info = connector_to_model_service.get_url_data(url) - if url_info["prediction"] == "phishing": + if url_info["prediction"] == "Phishing": PHISHING_COUNT.inc() if user_thinks_phishing: # User guessed the same as model @@ -58,7 +58,7 @@ def index(): else: # User did not USER_GUESS_AGREE_GAUGE.set(0) - elif url_info["prediction"] == "legitimate": + elif url_info["prediction"] == "Legitimate": if not user_thinks_phishing: # User guessed the same as model USER_SAME_GUESS_COUNT.inc()