Nelly-43 commited on
Commit
d342e33
Β·
verified Β·
1 Parent(s): a02cfcb

Update app_web.py

Browse files
Files changed (1) hide show
  1. app_web.py +5 -0
app_web.py CHANGED
@@ -35,6 +35,11 @@ def cg_admin():
35
 
36
  return False, orgs
37
 
 
 
 
 
 
38
  st.write(cg_admin())
39
  # ── Session initialisation ───────────────────────────────────────────────────
40
  def init_session():
 
35
 
36
  return False, orgs
37
 
38
+ # 1. Force a clean state wipe on first load of the browser session
39
+ if "app_initialized" not in st.session_state:
40
+ st.session_state.clear() # Wipes out any residual states
41
+ st.session_state["app_initialized"] = True
42
+
43
  st.write(cg_admin())
44
  # ── Session initialisation ───────────────────────────────────────────────────
45
  def init_session():