From 62fe4deecaa5c84be5c4dabe005ead98073bce4b Mon Sep 17 00:00:00 2001 From: julienChemillier Date: Sat, 18 Feb 2023 12:53:38 +0100 Subject: [PATCH] Change 'fully_connected' to 'dense' --- src/webserver/app.py | 2 +- src/webserver/static/script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webserver/app.py b/src/webserver/app.py index ea0e26c..04cc037 100644 --- a/src/webserver/app.py +++ b/src/webserver/app.py @@ -59,7 +59,7 @@ def recognize_mnist(image): return { "status": 200, "data": { - "fully_connected": json_data_fc, + "dense": json_data_fc, "cnn": json_data_cnn } } diff --git a/src/webserver/static/script.js b/src/webserver/static/script.js index 380b209..f5778bd 100644 --- a/src/webserver/static/script.js +++ b/src/webserver/static/script.js @@ -208,7 +208,7 @@ function getPrediction() { if (data["status"] != 200) { document.getElementById("result").innerHTML = "500 Internal Server Error"; } else { - addResults(document.getElementById("result_fc"), data["data"]["fully_connected"], RES_STANDARD); + addResults(document.getElementById("result_fc"), data["data"]["dense"], RES_STANDARD); addResults(document.getElementById("result_cnn"), data["data"]["cnn"], RES_CONV); } })