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.