Tesneem commited on
Commit
82e03c4
·
verified ·
1 Parent(s): eefaeba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -464,7 +464,10 @@ def gate_ui():
464
  if st.button("Login"):
465
  if APP_PASSWORD and pwd == APP_PASSWORD:
466
  st.session_state.authed = True
467
- st.experimental_rerun()
 
 
 
468
  else:
469
  st.error("Incorrect password.")
470
  with col2:
 
464
  if st.button("Login"):
465
  if APP_PASSWORD and pwd == APP_PASSWORD:
466
  st.session_state.authed = True
467
+ try:
468
+ st.rerun()
469
+ except AttributeError:
470
+ st.experimental_rerun()
471
  else:
472
  st.error("Incorrect password.")
473
  with col2: