Spaces:
Runtime error
Runtime error
Test loading from private repo
Browse files
app.py
CHANGED
@@ -7,12 +7,15 @@ from PIL import Image
|
|
7 |
import math
|
8 |
from collections import defaultdict
|
9 |
import os
|
10 |
-
from huggingface_hub import HfApi
|
|
|
|
|
|
|
11 |
|
12 |
|
13 |
def get_dataset_classes():
|
14 |
hf_api = HfApi()
|
15 |
-
info = hf_api.dataset_info(repo_id="simenv-explorer/
|
16 |
dataset_classes = defaultdict(list)
|
17 |
|
18 |
for file in info.siblings:
|
|
|
7 |
import math
|
8 |
from collections import defaultdict
|
9 |
import os
|
10 |
+
from huggingface_hub import HfApi, hf_hub_download
|
11 |
+
|
12 |
+
|
13 |
+
HUB_TOKEN = os.getenv("HUB_TOKEN")
|
14 |
|
15 |
|
16 |
def get_dataset_classes():
|
17 |
hf_api = HfApi()
|
18 |
+
info = hf_api.dataset_info(repo_id="simenv-explorer/shapenetcore-glb", token=HUB_TOKEN)
|
19 |
dataset_classes = defaultdict(list)
|
20 |
|
21 |
for file in info.siblings:
|