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

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
@@ -20,7 +20,6 @@ import zipfile
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)
24
 
25
  import transformers
26
  transformers.utils.move_cache()
 
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
25
  transformers.utils.move_cache()