Custom widget to connect many applications in Streamlit

Hey @Chakra, welcome to the community :slight_smile:

I wrote a bit about buttons and state here, it should apply to your need if you translate to your problem by a SessionState check to if ner_button_clicked.
The thing to understand is when you interact with the FileUploader, the script reruns with the ner_button_clicked button state set to None since you didn’t click on it at the last interaction, so we must somehow preserve this info. For now SessionState is the way to go to preserve info between two runs. You can store which button was last pressed in the SessionState and display the corresponding app.

BTW I like this proposal :slight_smile: those buttons are appealing.

Fanilo