How to use Streamlit session states and callback functions

Link