Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import os
|
| 2 |
-
os.environ["
|
|
|
|
| 3 |
os.environ["NUMBA_DISABLE_CACHE"] = "1" # Disable Numba caching to avoid errors
|
| 4 |
|
| 5 |
import torch
|
|
|
|
| 1 |
import os
|
| 2 |
+
os.environ["TRANSFORMERS_CACHE"] = "/tmp" # Ensure the cache directory is writable
|
| 3 |
+
os.environ["NUMBA_CACHE_DIR"] = "/tmp" # Ensure a writable cache directory for Numba
|
| 4 |
os.environ["NUMBA_DISABLE_CACHE"] = "1" # Disable Numba caching to avoid errors
|
| 5 |
|
| 6 |
import torch
|