tobiolatunji
commited on
Commit
•
d0f6eb5
1
Parent(s):
b179fcd
add tqdm to audio search
Browse files- afrispeech-200.py +1 -1
afrispeech-200.py
CHANGED
@@ -202,7 +202,7 @@ class AfriSpeech(datasets.GeneratorBasedBuilder):
|
|
202 |
metadata[audio_id] = {field: row.get(field, "") for field in data_fields}
|
203 |
|
204 |
for i, audio_archive in enumerate(archives):
|
205 |
-
for filename, file in tqdm(audio_archive, desc="Extracting audios..."):
|
206 |
# _, filename = os.path.split(filename)
|
207 |
filename = "/".join(filename.split("/")[-2:])
|
208 |
if filename in metadata:
|
|
|
202 |
metadata[audio_id] = {field: row.get(field, "") for field in data_fields}
|
203 |
|
204 |
for i, audio_archive in enumerate(archives):
|
205 |
+
for filename, file in tqdm(audio_archive, desc=f"Searching and Extracting audios for config {self.config.name}..."):
|
206 |
# _, filename = os.path.split(filename)
|
207 |
filename = "/".join(filename.split("/")[-2:])
|
208 |
if filename in metadata:
|