Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
27b44f0
1
Parent(s):
9bc3d0c
Remove redundant codes in fixing the HF space permission error.
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ import requests
|
|
| 16 |
from io import BytesIO
|
| 17 |
import zipfile
|
| 18 |
|
| 19 |
-
|
| 20 |
hf_cache_path = '/tmp/hf_cache'
|
| 21 |
os.environ["HF_HOME"] = hf_cache_path
|
| 22 |
|
|
|
|
| 16 |
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_HOME"] = hf_cache_path
|
| 22 |
|