DS2 commited on
Commit
4f66890
·
verified ·
1 Parent(s): 45987db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,8 +31,8 @@ def login():
31
  if submit_clicked:
32
  if password == APP_PASSWORD:
33
  st.session_state["authenticated"] = True
34
- # Force the page to reload by setting query parameters
35
- st.experimental_set_query_params(authenticated="true")
36
  else:
37
  st.error("Incorrect password")
38
 
 
31
  if submit_clicked:
32
  if password == APP_PASSWORD:
33
  st.session_state["authenticated"] = True
34
+ # Reload the page to show the content after authentication
35
+ st.experimental_rerun()
36
  else:
37
  st.error("Incorrect password")
38