Update test_repo.py
Browse files- test_repo.py +2 -2
test_repo.py
CHANGED
@@ -22,7 +22,7 @@ _LICENSE = "Apache License 2.0"
|
|
22 |
|
23 |
# Define URLs for different parts of the dataset if applicable
|
24 |
_URLS = {
|
25 |
-
"mcq_domain": "https://huggingface.co/datasets/anand-s/test_repo",
|
26 |
}
|
27 |
|
28 |
class TestRepo(datasets.GeneratorBasedBuilder):
|
@@ -55,7 +55,7 @@ class TestRepo(datasets.GeneratorBasedBuilder):
|
|
55 |
|
56 |
def _split_generators(self, dl_manager):
|
57 |
# Download and extract all the files in the directory
|
58 |
-
data_dir =
|
59 |
print(data_dir)
|
60 |
return [
|
61 |
datasets.SplitGenerator(
|
|
|
22 |
|
23 |
# Define URLs for different parts of the dataset if applicable
|
24 |
_URLS = {
|
25 |
+
"mcq_domain": "https://huggingface.co/datasets/anand-s/test_repo/resolve/main/train_mcq.zip",
|
26 |
}
|
27 |
|
28 |
class TestRepo(datasets.GeneratorBasedBuilder):
|
|
|
55 |
|
56 |
def _split_generators(self, dl_manager):
|
57 |
# Download and extract all the files in the directory
|
58 |
+
data_dir = dl_manager.download_and_extract(_URLS[self.config.name])
|
59 |
print(data_dir)
|
60 |
return [
|
61 |
datasets.SplitGenerator(
|