ZhengPeng7 commited on
Commit
484b929
·
1 Parent(s): 0ec1470

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["HF_HOME"] = hf_cache_path
22
  os.environ["HF_MODULES_CACHE"] = os.path.join("/tmp/hf_cache", "modules")
23
 
24
  import transformers
 
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_MODULES_CACHE"] = os.path.join("/tmp/hf_cache", "modules")
22
 
23
  import transformers