File size: 740 Bytes
404d784
 
 
 
 
 
 
ae8e5ec
404d784
 
ae8e5ec
 
404d784
 
 
 
 
ae8e5ec
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""Public Streamlit entrypoint for ENCOT.



This file is intentionally minimal so hosting platforms like Streamlit

Community Cloud can run the existing UI without changing project structure.

"""

from pathlib import Path
import importlib
import sys

import streamlit as st


ROOT = Path(__file__).resolve().parent
if str(ROOT) not in sys.path:
    sys.path.insert(0, str(ROOT))

try:
    gui_app = importlib.import_module("streamlit_gui.app")
    entrypoint = getattr(gui_app, "main", None)
    if callable(entrypoint):
        entrypoint()
    else:
        st.error("App entrypoint missing: streamlit_gui.app.main")
except Exception as exc:
    st.error(f"Failed to start ENCOT UI: {exc}")
    st.exception(exc)