Update libriheavy.py
Browse files- libriheavy.py +1 -0
libriheavy.py
CHANGED
@@ -212,6 +212,7 @@ class Libriheavy(datasets.GeneratorBasedBuilder):
|
|
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:
|
217 |
text = json.load(f)
|
|
|
212 |
except Exception as e:
|
213 |
print(e, "retrying in 60s")
|
214 |
sleep(60)
|
215 |
+
retry += 1
|
216 |
utterances = npz.keys()
|
217 |
with gzip.open(chunk["text"], "rt") as f:
|
218 |
text = json.load(f)
|