JohnDoee commited on
Commit
53fd703
·
1 Parent(s): 2ee1f34

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -0
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()