Spaces:
Runtime error
Runtime error
bug comment
Browse files- src/global_variables.py +5 -5
src/global_variables.py
CHANGED
@@ -20,11 +20,11 @@ def setup():
|
|
20 |
global all_metadata
|
21 |
global all_votes
|
22 |
hf_api = HfApi(token=HF_TOKEN)
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
all_metadata = {}
|
29 |
for split in ["train", "validation", "test"]:
|
30 |
all_metadata[split] = []
|
|
|
20 |
global all_metadata
|
21 |
global all_votes
|
22 |
hf_api = HfApi(token=HF_TOKEN)
|
23 |
+
hf_api.snapshot_download(
|
24 |
+
local_dir=f"{ASSETS_FOLDER}/{DATASET_NAME}",
|
25 |
+
repo_id=DATASET_NAME,
|
26 |
+
repo_type="dataset",
|
27 |
+
)
|
28 |
all_metadata = {}
|
29 |
for split in ["train", "validation", "test"]:
|
30 |
all_metadata[split] = []
|