Spaces:
Sleeping
Sleeping
File size: 600 Bytes
404d784 1770473 404d784 1770473 404d784 1770473 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | """Hugging Face Spaces Streamlit entrypoint for ENCOT."""
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)
|