Update libriheavy.py
Browse files- libriheavy.py +2 -2
libriheavy.py
CHANGED
@@ -209,8 +209,8 @@ class Libriheavy(datasets.GeneratorBasedBuilder):
|
|
209 |
try:
|
210 |
npz = dict(np.load(chunk["audio"], allow_pickle=True))
|
211 |
break
|
212 |
-
except
|
213 |
-
print(
|
214 |
sleep(60)
|
215 |
utterances = npz.keys()
|
216 |
with gzip.open(chunk["text"], "rt") as f:
|
|
|
209 |
try:
|
210 |
npz = dict(np.load(chunk["audio"], allow_pickle=True))
|
211 |
break
|
212 |
+
except Exception as e:
|
213 |
+
print(e, "retrying in 60s")
|
214 |
sleep(60)
|
215 |
utterances = npz.keys()
|
216 |
with gzip.open(chunk["text"], "rt") as f:
|