TheXeos commited on
Commit
458c769
·
1 Parent(s): e9a1e2d

Fix download call

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -13,6 +13,7 @@ from huggingface_hub import HfApi, hf_hub_download
13
  HUB_TOKEN = os.getenv("HUB_TOKEN")
14
  REPO_ID = "simenv-explorer/shapenetcore-glb"
15
 
 
16
  def get_dataset_classes():
17
  hf_api = HfApi()
18
  info = hf_api.dataset_info(repo_id=REPO_ID, token=HUB_TOKEN)
@@ -44,7 +45,7 @@ def update(asset_name):
44
  filename=split_model_path[1],
45
  subfolder=split_model_path[0],
46
  repo_type="dataset",
47
- token=HUB_TOKEN,
48
  )
49
  print(asset_name)
50
  return asset_path
 
13
  HUB_TOKEN = os.getenv("HUB_TOKEN")
14
  REPO_ID = "simenv-explorer/shapenetcore-glb"
15
 
16
+
17
  def get_dataset_classes():
18
  hf_api = HfApi()
19
  info = hf_api.dataset_info(repo_id=REPO_ID, token=HUB_TOKEN)
 
45
  filename=split_model_path[1],
46
  subfolder=split_model_path[0],
47
  repo_type="dataset",
48
+ use_auth_token=HUB_TOKEN,
49
  )
50
  print(asset_name)
51
  return asset_path