Skip to content

Commit

Permalink
🛠 Changed Deprecated function (st.experimental.rerun())
Browse files Browse the repository at this point in the history
  • Loading branch information
welikeheon committed Apr 12, 2024
1 parent a1322aa commit 2ce0bd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def check_login():
st.session_state.ktrains = ktrains
if check_login():
# refresh page
st.experimental_rerun()
st.rerun()
else:
st.error(_("Login failed"))
else:
Expand All @@ -121,7 +121,7 @@ def check_login():
if logout_button:
st.session_state.ktrains.logout()
st.session_state.ktrains = None
st.experimental_rerun()
st.rerun()
# divider
st.markdown("""---""")

Expand Down

0 comments on commit 2ce0bd9

Please sign in to comment.