Spaces:
Running
Running
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
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:
|