change_loading_options
Browse files
app.py
CHANGED
@@ -37,8 +37,11 @@ from mogen.datasets.pipelines import RetargetSkeleton
|
|
37 |
|
38 |
import requests
|
39 |
from huggingface_hub import hf_hub_download
|
|
|
40 |
|
41 |
def load_large_files(relative_path):
|
|
|
|
|
42 |
# URL to file in the Hugging Face Hub
|
43 |
url = "https://huggingface.co/mingyuan/data_hf/blob/main/" + relative_path
|
44 |
# Temporary download in Space
|
|
|
37 |
|
38 |
import requests
|
39 |
from huggingface_hub import hf_hub_download
|
40 |
+
from huggingface_hub import login
|
41 |
|
42 |
def load_large_files(relative_path):
|
43 |
+
hf_token = os.getenv("HF_TOKEN")
|
44 |
+
login(token=hf_token)
|
45 |
# URL to file in the Hugging Face Hub
|
46 |
url = "https://huggingface.co/mingyuan/data_hf/blob/main/" + relative_path
|
47 |
# Temporary download in Space
|