How to download file in streamlit

Adding the ‘download’ tag attribute as shown below allows you to provide a file name and extension.

f'<a href="data:file/csv;base64,{b64}" download="myfilename.csv">Download csv file</a>'

18 Likes