Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -72,7 +72,8 @@ with st.expander("🧩 Session Diagnostics", expanded=False):
|
|
| 72 |
# ─── Embed Taipy Realtime Dashboard ─────────────────────────────
|
| 73 |
st.subheader("📊 Realtime System Dashboard (Taipy)")
|
| 74 |
|
| 75 |
-
|
|
|
|
| 76 |
st.info("Taipy dashboard is disabled on Hugging Face Spaces (requires local port).")
|
| 77 |
else:
|
| 78 |
try:
|
|
|
|
| 72 |
# ─── Embed Taipy Realtime Dashboard ─────────────────────────────
|
| 73 |
st.subheader("📊 Realtime System Dashboard (Taipy)")
|
| 74 |
|
| 75 |
+
# Safe Hugging Face check
|
| 76 |
+
if hasattr(st, "secrets") and "SPACE_ID" in getattr(st, "secrets", {}):
|
| 77 |
st.info("Taipy dashboard is disabled on Hugging Face Spaces (requires local port).")
|
| 78 |
else:
|
| 79 |
try:
|