From a18bfca9f8cfdf383b818cb5dac7f455c445cc09 Mon Sep 17 00:00:00 2001 From: Joakim Persson Date: Fri, 19 Jul 2024 10:39:38 +0200 Subject: [PATCH] =?UTF-8?q?Lade=20till=20n=C3=A5gra=20utskrifter=20f=C3=B6?= =?UTF-8?q?r=20fels=C3=B6kning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smartassist/src/backend.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/smartassist/src/backend.py b/smartassist/src/backend.py index f3d3500..5580059 100644 --- a/smartassist/src/backend.py +++ b/smartassist/src/backend.py @@ -80,10 +80,12 @@ def get_response(user_query): # Return the generated response return response -def run_flask(fport = 5005): +def run_flask(fport=5005): # Flask endpoint for user interaction - app.run(str(fport), debug=True) + print(f"Entering run_flask()") + app.run(port = str(str(fport)), debug=False) # app.run(port=5000, debug=True, use_reloader=False) + print(f"Exiting run_flask()") if __name__ == '__main__':