fix(launcher): use runpy in entrypoint to ensure reliable execution across browser refreshes

This commit is contained in:
Abhinav Gupta
2026-10-03 11:49:57 +05:30
parent c6c0cf477c
commit fc5eb7aaab
+4 -2
View File
@@ -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__")