From 23951a9534fd4886a67f9d86b25676a44cdd9f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Sadowski?= Date: Thu, 24 Apr 2025 14:01:21 +0000 Subject: [PATCH] poorty --- dash/main.py | 3 ++- visualizer.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dash/main.py b/dash/main.py index bf46ca3..9ef385f 100644 --- a/dash/main.py +++ b/dash/main.py @@ -44,7 +44,8 @@ def update_analyzer(files): # print('dupa') # print(files) if files: - return html.Iframe(src='http://localhost:5000/?'+urlencode({f'f{i}': file for i, file in enumerate(files)}), width='100%', height=800) + # return html.Iframe(src='http://localhost:5000/?'+urlencode({f'f{i}': file for i, file in enumerate(files)}), width='100%', height=800) + return html.Iframe(src='/viz/?'+urlencode({f'f{i}': file for i, file in enumerate(files)}), width='100%', height=800) return dbc.Label("No measurement selected for analysis") diff --git a/visualizer.py b/visualizer.py index fa7e6d9..88e1e25 100644 --- a/visualizer.py +++ b/visualizer.py @@ -141,7 +141,7 @@ if __name__ == "__main__": print(f'- {sys.argv[0]} benchmark1/*') exit() apps = {'/': Application(FunctionHandler(lambda doc: make_doc(doc, files)))} - server = Server(apps, address='127.0.0.1', port=5000, ) + server = Server(apps, address='127.0.0.1', port=8051, ) print('Visualizer started. navigate to http://localhost:5000/ to continue') print('Exit with interrupt (Ctrl+C)') server.run_until_shutdown()