Hi, I deployed an app in the streamlit cloud and it seems that everything is working fine. However, as the users interact with the app, a .csv file is generated (one file per user, the files are saved in the root folder when I execute the app locally). I need to download those .csv files (there are around 5 csv files that I need to download, one file per user).
However, I do not know how to obtain those csv files. Any ideas?
I know that a good option could be to save the file somewhere else, but in every step of the app the file is modified so it could be a lot of savings…
I can share the github repo if requested.
Any ideas or help would be much appreciated!
Save the data in a Google spreadsheet: tried but not sucessfully.
Add a download link: this is what I have done, but I don’t want the users to see this button, only me.
My solution for the moment have been to create a folder named “static” into the root folder, to access static files (without the need of the download button) with a direct link. However, I am worried because in the case of server restart or any kind of problem, this files would be lost (aren’t they?). So this make me wonder, how many time can a Streamlit Cloud app be alive? Can I make those files inside the “static” folder to be presistent?
Yeah, as I wrote in my previous post, this is what I have done, however the files would disappear in the case of a server restart, isn’t it? Do you know if an app hosted in Streamlit Cloud have a limit timelife span? Or any kind of server limitations (restart every month, etc…)?
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.