init
Browse files- download_audio.py +2 -2
download_audio.py
CHANGED
@@ -141,8 +141,8 @@ if __name__ == '__main__':
|
|
141 |
# with Pool(n_pool) as pool:
|
142 |
# pool.map_async(get_audio, tqdm(batch_inputs, total=len(batch_inputs)))
|
143 |
with Pool(n_pool) as pool:
|
144 |
-
pool.
|
145 |
-
|
146 |
|
147 |
def loader(feature: str) -> Dict:
|
148 |
with open(feature) as f_reader:
|
|
|
141 |
# with Pool(n_pool) as pool:
|
142 |
# pool.map_async(get_audio, tqdm(batch_inputs, total=len(batch_inputs)))
|
143 |
with Pool(n_pool) as pool:
|
144 |
+
for flag in pool.imap_unordered(get_audio, tqdm(inputs, total=len(inputs))):
|
145 |
+
pass
|
146 |
|
147 |
def loader(feature: str) -> Dict:
|
148 |
with open(feature) as f_reader:
|