mingyuan commited on
Commit
0d91c82
·
1 Parent(s): d4cd123

change_loading_options

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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