Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
484b929
1
Parent(s):
0ec1470
Remove redundant codes in fixing the HF space permission error.
Browse files
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
|