ZhengPeng7 commited on
Commit
c4044a5
·
1 Parent(s): f41a09e

Remove redundant codes in fixing the HF space permission error.

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -18,7 +18,6 @@ import zipfile
18
 
19
  # Fix the HF space permission error when using from_pretrained(..., trust_remote_code=True)
20
  hf_cache_path = '/tmp/hf_cache'
21
- os.environ["HUGGINGFACE_HUB_CACHE"] = hf_cache_path
22
  os.environ["HF_HOME"] = hf_cache_path
23
  os.environ["HF_MODULES_CACHE"] = os.path.join("/tmp/hf_cache", "modules")
24
  os.makedirs(os.path.join("/tmp/hf_cache", "modules"), exist_ok=True)
 
18
 
19
  # Fix the HF space permission error when using from_pretrained(..., trust_remote_code=True)
20
  hf_cache_path = '/tmp/hf_cache'
 
21
  os.environ["HF_HOME"] = hf_cache_path
22
  os.environ["HF_MODULES_CACHE"] = os.path.join("/tmp/hf_cache", "modules")
23
  os.makedirs(os.path.join("/tmp/hf_cache", "modules"), exist_ok=True)