NexusInstruments commited on
Commit
e6eb71c
·
verified ·
1 Parent(s): 0de71f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- if "SPACE_ID" in st.secrets: # running on Hugging Face
 
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: