cdminix commited on
Commit
c6b60b2
1 Parent(s): 590565a

Update libriheavy.py

Browse files
Files changed (1) hide show
  1. 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)