How to see created files?

In my code logic, I create csv files and save them in the path that I’m currently in. So these files are together with the app.py. I can see that the csv is saved in “/mount/src/MY_REPO_NAME/XXX.csv”. But how do I access it? Or can I write some logic in the code so that I can download these csvs?

Where do you deploy your streamlit app?

I deployed here: https://share.streamlit.io/deploy

You can consider that csv to be located at the root or working folder of your app.

df = pd.read_csv('XXX.csv')
st.dataframe(df)

How to download a Pandas DataFrame as a CSV? - Streamlit Docs

Creating, deleting and modifying files in the streamlit community cloud using your code is not recommended. Do not do this. Instead use the database connection techniques.

Files that are already in the repo such as the files in the github repo are fine. You can read it and show or use its contents.