Hi I have an app where request people to provide input. The input is then auto save at a csv file at Github. It works when I run the apps at my local drive but when I deploy at streamlit using Github, the csv file is not updated. I create a test folder at below link. Appreciate if someone could assist me how to get the input save at the csv file.
app name → streamlit_app.py
csv file is save at → data/test.csv
Most likely it is “working”, in that it successfully saves the csv file, but it saves it on the Streamlit Cloud server that it’s running on, not on Github. If you wanted to then save the file to github, you would have to use git to add, commit and push the file to the repo after it is updated. You could probably accomplish that using GitPython Overview / Install — GitPython 3.1.27 documentation if you really wanted to.
Alternative methods to saving the file somewhere include:
HI blackary,
Thanks for your reply. It is informative. May I know how can I access my csv file at streamlit server? If there is no way to access, then probably I will try learn one of the method like google sheet. But if I can access the file at streamlit server, than I will be very happy to access this way.
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.