From fc5eb7aaab464bf910d9c57bf1b7541cef878f24 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Sat, 3 Oct 2026 11:49:57 +0530 Subject: [PATCH] fix(launcher): use runpy in entrypoint to ensure reliable execution across browser refreshes --- app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index b0ac381..7632c27 100644 --- a/app.py +++ b/app.py @@ -23,5 +23,7 @@ for venv_name in ("env", ".venv", "venv"): if sp.exists() and str(sp) not in sys.path: sys.path.insert(0, str(sp)) -# Import and execute main Streamlit UI -from medical_coding.ui.app import * # noqa: E402, F401, F403 +# Import and execute main Streamlit UI reliably across browser refreshes +import runpy + +runpy.run_module("medical_coding.ui.app", run_name="__main__")