Clear selected items on multiselect when submitted in a form

I’ve been trying to make an annotation tool for multilabel text classification with multiselect and form. My Issue is that after submitting, the selected items still persists in the multiselect, which makes annotating the next text really annoying, when one has to first manually unselect the previous items. Below is a snippit:

    options = ["Small talk","Shopping ideas","Customer service"]

    with st.form(key='my_annotator'):

        select_anno = st.multiselect(
        "Choose the classifaction classes",

        accept_button = st.form_submit_button(label='Accept')

        if accept_button:

I’d be very happy about any suggestions/solutions to this :sweat_smile: