Downloading path when working with Streamlit Cloud

Hi there,

I have coded my app and it works fine when I run it locally. My code generates a pdf that I want to download to a specific path on my computer.
I have deployed my app on the Streamlit Cloud but I get some errors since it’s not able to read the path I wrote in the “” function. How can I solve this?
Thanks!! :slight_smile:

My recommendation would be to simply save the generated pdf to the current folder that your app is running in, since you should have access to do that, and then use st.download_button to download it. If you need it to be saved in a specific place on your computer, you’ll then need to control that via your browser’s download dialogue.