I’m running a python program in a Gradio space. I want to use persistent storage to create, read, write a small text file to track usage across different sessions. For testing purposes I’m only trying to use the free (non-persistent) storage. So my program creates, writes to and reads from the small text file all within a current session. When I get it working I will subscribe to paid persistent storage.
I’m told the folder for storage is /data but I cannot figure out how to compose a valid path to a file (example “userLog.txt” ) in this folder. Anything I try just throws an exception when trying to open and use the file.
Can someone clue me in here? TIA