Try set /home/user/huggingface or so to HF_HOME env.
It seems that the directories beginning with a dot in the Hugging Face Spaces become read-only, but Transoformers and other programs try to write to the cache there. I think this is a bug in the broad sense, but I don’t know where to report it… perhaps @Wauplin ?
I think you can avoid this by changing the cache folder using the method above.
If you can do that before Transoformers starts, that’s fine too, and you can set the environment variables and Secrets environment variables from the Settings in Spaces.
import os
os.environ["HF_HOME"] = "/home/user/huggingface"