mnansary
commited on
Commit
•
41edc43
1
Parent(s):
b003d90
auth token hardcoded
Browse files- CommonVoiceBangla.py +5 -5
CommonVoiceBangla.py
CHANGED
@@ -145,11 +145,11 @@ class CommonVoice(datasets.GeneratorBasedBuilder):
|
|
145 |
|
146 |
def _split_generators(self, dl_manager):
|
147 |
"""Returns SplitGenerators."""
|
148 |
-
hf_auth_token = dl_manager.download_config.use_auth_token
|
149 |
-
if hf_auth_token is None:
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
|
154 |
bundle_url_template = STATS["bundleURLTemplate"]
|
155 |
bundle_version = bundle_url_template.split("/")[0]
|
|
|
145 |
|
146 |
def _split_generators(self, dl_manager):
|
147 |
"""Returns SplitGenerators."""
|
148 |
+
hf_auth_token ='<TOKEN>' #dl_manager.download_config.use_auth_token
|
149 |
+
# if hf_auth_token is None:
|
150 |
+
# raise ConnectionError(
|
151 |
+
# "Please set use_auth_token=True or use_auth_token='<TOKEN>' to download this dataset"
|
152 |
+
# )
|
153 |
|
154 |
bundle_url_template = STATS["bundleURLTemplate"]
|
155 |
bundle_version = bundle_url_template.split("/")[0]
|