matybohacek
commited on
Commit
•
9fe6a2e
1
Parent(s):
42f6dc1
Update deepaction_v1.py
Browse files- deepaction_v1.py +9 -9
deepaction_v1.py
CHANGED
@@ -35,15 +35,15 @@ class DeepActionV1(datasets.GeneratorBasedBuilder):
|
|
35 |
)
|
36 |
|
37 |
def _split_generators(self, dl_manager):
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
|
48 |
def _generate_examples(self, data_dir):
|
49 |
for label in os.listdir(data_dir):
|
|
|
35 |
)
|
36 |
|
37 |
def _split_generators(self, dl_manager):
|
38 |
+
repo_url = "https://huggingface.co/datasets/faridlab/deepaction_v1"
|
39 |
+
data_dir = dl_manager.download_and_extract(repo_url, use_auth_token=True) # Ensure token usage
|
40 |
+
|
41 |
+
return [
|
42 |
+
datasets.SplitGenerator(
|
43 |
+
name=datasets.Split.TRAIN,
|
44 |
+
gen_kwargs={"data_dir": data_dir},
|
45 |
+
),
|
46 |
+
]
|
47 |
|
48 |
def _generate_examples(self, data_dir):
|
49 |
for label in os.listdir(data_dir):
|