Hi @HectorHQ
Perhaps you can embed all widgets inside a st.form and upon clicking on the Submit button, all necessary processing are performed and culminating with a file download. As for having the file download occur without explicitly using the st.download_button, I think you can get some inspiration from the code snippet provided at this link: Automatic Download / Select and Download File with Single Button Click - #4 by snehankekre
Hope this helps!