Hello @lucasmengual, welcome to the forum,
There was a similar question recently, and I think st.beta_expander is the easiest way to hide the file uploader without having to programmatically play with the rerunning script to see if files were added.
st.beta_expander
Would that fit your need?
Best, Fanilo