General advice on page render optimisation?

You can put your widgets in a form if you would like to allow a user to make multiple changes before committing to rerunning your script.

You can use st.empty to clear a screen. I just wrote a snippet in another post here: