Hide button while model is running in Streamlit


I am developing an application, which infer an stable diffusion model when RUN button is pressed. How can i disable/hide this RUN button while model is running, and enable/show it again when done.This reduces a lot of repeated calls.

Hey @datalee,

Thanks for sharing this question. Have you tried using st.empty to replace the β€œrun” button with a disabled button while your model is running?

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