Hello
I used to have the same problem in my app.
you can reset with a st.button()
if st.button(‘r> eset’)
st.session_state[‘p’]= False
if not ‘p’ in st.session_state or st.session_state.get(‘p’):
with open(‘test.yaml’, ‘r’) as f:
st.session_state[‘p’] = load(f, Loader = Loader)
I use streamlit option menu, that dosn’t reload the page each time you switch the page. And could fix some problem !
Flo