Pulastya0 commited on
Commit
f156d8f
·
verified ·
1 Parent(s): 63bfc76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -7,8 +7,10 @@ import torch
7
  # -------------------------------
8
  # Set Hugging Face cache to writable directory
9
  # -------------------------------
10
- os.environ["HF_HOME"] = "/data/huggingface-cache"
11
- os.environ["TRANSFORMERS_CACHE"] = "/data/huggingface-cache"
 
 
12
 
13
  # -------------------------------
14
  # FastAPI app
 
7
  # -------------------------------
8
  # Set Hugging Face cache to writable directory
9
  # -------------------------------
10
+ os.environ["HF_HOME"] = "/tmp/huggingface"
11
+ os.environ["TRANSFORMERS_CACHE"] = "/tmp/huggingface"
12
+ os.environ["HF_DATASETS_CACHE"] = "/tmp/huggingface"
13
+
14
 
15
  # -------------------------------
16
  # FastAPI app