diff --git a/backend/api_server.py b/backend/api_server.py index b15f31a..2abfbf1 100755 --- a/backend/api_server.py +++ b/backend/api_server.py @@ -1303,7 +1303,10 @@ def load_qc_apps(): def serve_web_ui(): """Serve the web UI""" try: - with open('web_ui.html', 'r') as f: + # Use absolute path to web_ui.html (located in parent directory) + base_dir = os.path.dirname(os.path.abspath(__file__)) + web_ui_path = os.path.join(os.path.dirname(base_dir), 'web_ui.html') + with open(web_ui_path, 'r') as f: html_content = f.read() return Response(html_content, mimetype='text/html') except FileNotFoundError: