Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -8,8 +8,8 @@ from langdetect import detect, DetectorFactory
|
|
| 8 |
DetectorFactory.seed = 0
|
| 9 |
|
| 10 |
# Set Hugging Face cache directory to a writable location
|
| 11 |
-
os.environ["HF_HOME"] = "/
|
| 12 |
-
os.environ["TRANSFORMERS_CACHE"] = "/
|
| 13 |
|
| 14 |
# Create cache directory with proper permissions
|
| 15 |
cache_dir = os.environ["HF_HOME"]
|
|
|
|
| 8 |
DetectorFactory.seed = 0
|
| 9 |
|
| 10 |
# Set Hugging Face cache directory to a writable location
|
| 11 |
+
os.environ["HF_HOME"] = "/app/huggingface_cache"
|
| 12 |
+
os.environ["TRANSFORMERS_CACHE"] = "/app/huggingface_cache"
|
| 13 |
|
| 14 |
# Create cache directory with proper permissions
|
| 15 |
cache_dir = os.environ["HF_HOME"]
|