Spaces:
Paused
Paused
Update main.py
Browse files
main.py
CHANGED
|
@@ -3,6 +3,11 @@ import os
|
|
| 3 |
os.environ["HUGGINGFACE_HUB_CACHE"] = "/tmp/huggingface_cache"
|
| 4 |
os.makedirs("/tmp/huggingface_cache", exist_ok=True)
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
import torch
|
| 7 |
import numpy as np
|
| 8 |
from PIL import Image
|
|
|
|
| 3 |
os.environ["HUGGINGFACE_HUB_CACHE"] = "/tmp/huggingface_cache"
|
| 4 |
os.makedirs("/tmp/huggingface_cache", exist_ok=True)
|
| 5 |
|
| 6 |
+
os.environ["NUMBA_CACHE_DIR"] = "/tmp/numba_cache"
|
| 7 |
+
|
| 8 |
+
# Create the directory
|
| 9 |
+
os.makedirs("/tmp/numba_cache", exist_ok=True)
|
| 10 |
+
|
| 11 |
import torch
|
| 12 |
import numpy as np
|
| 13 |
from PIL import Image
|