fix(launcher): use runpy in entrypoint to ensure reliable execution across browser refreshes
This commit is contained in:
@@ -23,5 +23,7 @@ for venv_name in ("env", ".venv", "venv"):
|
|||||||
if sp.exists() and str(sp) not in sys.path:
|
if sp.exists() and str(sp) not in sys.path:
|
||||||
sys.path.insert(0, str(sp))
|
sys.path.insert(0, str(sp))
|
||||||
|
|
||||||
# Import and execute main Streamlit UI
|
# Import and execute main Streamlit UI reliably across browser refreshes
|
||||||
from medical_coding.ui.app import * # noqa: E402, F401, F403
|
import runpy
|
||||||
|
|
||||||
|
runpy.run_module("medical_coding.ui.app", run_name="__main__")
|
||||||
|
|||||||
Reference in New Issue
Block a user