Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -9,6 +9,7 @@ DetectorFactory.seed = 0
|
|
9 |
|
10 |
# Set Hugging Face cache directory to a writable location
|
11 |
os.environ["HF_HOME"] = "/tmp/huggingface"
|
|
|
12 |
os.makedirs(os.environ["HF_HOME"], exist_ok=True)
|
13 |
|
14 |
app = FastAPI()
|
|
|
9 |
|
10 |
# Set Hugging Face cache directory to a writable location
|
11 |
os.environ["HF_HOME"] = "/tmp/huggingface"
|
12 |
+
os.environ["TRANSFORMERS_CACHE"] = "/tmp/huggingface"
|
13 |
os.makedirs(os.environ["HF_HOME"], exist_ok=True)
|
14 |
|
15 |
app = FastAPI()
|