Spaces:
Runtime error
Runtime error
Commit Β·
51db558
1
Parent(s): 9dfb393
diag: wrap module-level imports to surface crash error
Browse filesCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- streamlit_app.py +10 -4
streamlit_app.py
CHANGED
|
@@ -22,10 +22,16 @@ import streamlit as st
|
|
| 22 |
import plotly.graph_objects as go
|
| 23 |
from plotly.subplots import make_subplots
|
| 24 |
|
| 25 |
-
|
| 26 |
-
from env.
|
| 27 |
-
from env.
|
| 28 |
-
from
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 31 |
# Page config (must be first Streamlit call)
|
|
|
|
| 22 |
import plotly.graph_objects as go
|
| 23 |
from plotly.subplots import make_subplots
|
| 24 |
|
| 25 |
+
try:
|
| 26 |
+
from env.spindleflow_env import SpindleFlowEnv
|
| 27 |
+
from env.state import EpisodeState
|
| 28 |
+
from env.specialist_registry import SpecialistRegistry
|
| 29 |
+
from orchestrator_widget import render_orchestrator
|
| 30 |
+
except Exception as _import_err:
|
| 31 |
+
import traceback as _tb
|
| 32 |
+
st.error(f"Import failed: {_import_err}")
|
| 33 |
+
st.code(_tb.format_exc())
|
| 34 |
+
st.stop()
|
| 35 |
|
| 36 |
# βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
| 37 |
# Page config (must be first Streamlit call)
|