lanna_lalala;- commited on
Commit
f1c8fb5
·
2 Parent(s): 5a8b3c542fd3a1

Merge branch 'main' of https://github.com/Alalalallalalalalalalalal/FinED-Front

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -22,9 +22,13 @@ DISABLE_DB = os.getenv("DISABLE_DB", "1") == "1"
22
 
23
  try:
24
  ok = api.health().get("ok")
25
- st.sidebar.success("Backend: UP") if ok else st.sidebar.warning("Backend: ?")
 
 
 
26
  except Exception as e:
27
  st.sidebar.error(f"Backend DOWN: {e}")
 
28
 
29
  # --- SESSION STATE INITIALIZATION ---
30
  for key, default in [("user", None), ("current_page", "Welcome"),
 
22
 
23
  try:
24
  ok = api.health().get("ok")
25
+ if ok:
26
+ st.sidebar.success("Backend: UP")
27
+ else:
28
+ st.sidebar.warning("Backend: ?")
29
  except Exception as e:
30
  st.sidebar.error(f"Backend DOWN: {e}")
31
+
32
 
33
  # --- SESSION STATE INITIALIZATION ---
34
  for key, default in [("user", None), ("current_page", "Welcome"),