Spaces:
Runtime error
Runtime error
Fix download call
Browse files
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 |
-
|
| 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
|