So I ran into the following content, and do not understand any of it:
How to check if streamlit is in session
I think it is perhaps because the answer provided