Spaces:
Runtime error
Runtime error
Fix session state
#1
by Wauplin HF Staff - opened
Session state must be set only once:
if "is_shared" not in st.session_state:
st.session_state["is_shared"] = False
otherwise the st.session_state["is_shared"] = False is run on each page reload. This is how streamlit works (each time to interact with the UI, the all page is rerun). I tested it locally and it should work now :)
sasha changed pull request status to merged