Spaces:
Sleeping
Sleeping
Update app/main.py
Browse filesFix cache directory permissions for Hugging Face model
- app/main.py +1 -1
app/main.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
# Set a writable cache directory inside the Space container
|
| 4 |
-
os.environ["TRANSFORMERS_CACHE"] = "
|
| 5 |
|
| 6 |
|
| 7 |
from fastapi import FastAPI
|
|
|
|
| 1 |
import os
|
| 2 |
|
| 3 |
# Set a writable cache directory inside the Space container
|
| 4 |
+
os.environ["TRANSFORMERS_CACHE"] = "/code/cache"
|
| 5 |
|
| 6 |
|
| 7 |
from fastapi import FastAPI
|