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

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
@@ -17,7 +17,6 @@ from io import BytesIO
17
  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_MODULES_CACHE"] = os.path.join("/tmp/hf_cache", "modules")
22
 
23
  import transformers
 
17
  import zipfile
18
 
19
  # Fix the HF space permission error when using from_pretrained(..., trust_remote_code=True)
 
20
  os.environ["HF_MODULES_CACHE"] = os.path.join("/tmp/hf_cache", "modules")
21
 
22
  import transformers