Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import os
|
|
3 |
# Set HF_HOME to a writable directory in /tmp
|
4 |
os.environ["HF_HOME"] = "/tmp/huggingface_cache"
|
5 |
os.makedirs("/tmp/huggingface_cache", exist_ok=True)
|
6 |
-
|
|
|
7 |
# Optionally, you can also set TRANSFORMERS_CACHE for backwards compatibility:
|
8 |
os.environ["TRANSFORMERS_CACHE"] = "/tmp/huggingface_cache"
|
9 |
|
|
|
3 |
# Set HF_HOME to a writable directory in /tmp
|
4 |
os.environ["HF_HOME"] = "/tmp/huggingface_cache"
|
5 |
os.makedirs("/tmp/huggingface_cache", exist_ok=True)
|
6 |
+
os.environ["PYTHONUSERBASE"] = "/tmp/.local"
|
7 |
+
os.makedirs("/tmp/.local", exist_ok=True)
|
8 |
# Optionally, you can also set TRANSFORMERS_CACHE for backwards compatibility:
|
9 |
os.environ["TRANSFORMERS_CACHE"] = "/tmp/huggingface_cache"
|
10 |
|