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 :)

Thank you @Wauplin !

sasha changed pull request status to merged

Sign up or log in to comment