mnansary
commited on
Commit
•
7f607ce
1
Parent(s):
0ea219d
auth token hardcoded
Browse files- CommonVoiceBangla.py +5 -5
- release_stats.py +1 -1
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 =
|
149 |
-
|
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 = 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]
|
release_stats.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
STATS = {
|
2 |
-
"bundleURLTemplate":
|
3 |
"date": "2022-04-27",
|
4 |
"name": "Common Voice Corpus 9.0",
|
5 |
"multilingual": True,
|
|
|
1 |
STATS = {
|
2 |
+
"bundleURLTemplate": 'cv-corpus-9.0-2022-04-27/cv-corpus-9.0-2022-04-27-{locale}.tar.gz',
|
3 |
"date": "2022-04-27",
|
4 |
"name": "Common Voice Corpus 9.0",
|
5 |
"multilingual": True,
|