File_uploader, button and selectbox inside button

Hi,

I have the following streamlit architecture:

  1. File uploader
  2. Button
    2.1 selectbox

The problem is when I change de index of the selectbox the computations start from the beginning, how could I do to avoid this situation?

Thanks

Hi, streamlit has a concept of session.state (please refer here)

Additionaly, there is a great video from @andfanilo about keeping state of the buttons and nesting them

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.