Hello, I’ve just started and am really enjoying learning your platform. I was wondering if there is a button to disable or freeze a widget using a click button.
here’s a snippet of my code that I want to implement.
# 2. Select Models to Run
if st.session_state.upload_file:
st.header('Select model')
model_options = st.multiselect(
"Choose Models to run",
options = ['Logistic Regression', 'Random Forest'],
default = ['Logistic Regression', 'Random Forest'],
key = 'multiselect_model'
)
finalize_button = st.button('Finalize Model')
if finalize_button:
# I want to freeze the multiselect widget, or disable the user from changing the setting
st.write('You have selected ', model_options)