"""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)