Radio button in a loop

Hi I am using streamlit to create an interactive session with users… I provide 5 options to the users, user selects one options using radio button. I feed that information back to my model… but as it run from the top. It doesn’t give me the updated model… i have to re run the model to see user behavior… any suggestion is appreciated. Thanks

Hi @dmrathod , look up session state in the streamlit help documentation / youtube.
Here’s a link: STREAMLIT TRICKS - Web App RERUNS on every WIDGET CLICKS ? Here's WHAT-TO-DO |SessionState| PYTHON - YouTube

Hope that works for you

Cheers

1 Like