Streamlit Share - Persist files

Hey guys,

Is it possible to recover files created by a streamlit share app?

My use case:

  • I created and deployed a small app from GitHub;
  • When the user interacts with the app, a few JSON files are created in my data/ folder;
  • Those JSON files are available in the app until I push changes to my project in GitHub;
  • Then the created files disappear.

It seems that when rebuilding, the entire GitHub project overwrites all streamlit files in such a way the default empty data/ folder replace the filled one and I lose all the user-created content in that folder;

I’m not sure how exactly the storage works. Maybe I could recover the stored files programmatically before pushing a new version? If so, how can I do this?

Thanks