versae commited on
Commit
dba857a
1 Parent(s): 12b4d73
Files changed (2) hide show
  1. run.sh +0 -0
  2. run_speech_recognition_ctc.py +1 -1
run.sh CHANGED
File without changes
run_speech_recognition_ctc.py CHANGED
@@ -415,7 +415,7 @@ def main():
415
 
416
  def filter_tooshort(entry):
417
  #print(f"The audio sample ({entry["audio"]["path"]}) is too small, and has been omitted. "
418
- return len(entry["text"]) >= len(entry["audio"]["array"] // 320 and len(entry["text"].strip()) >= 3
419
 
420
  def map_dataset(entry):
421
  batch = {"text": entry["text"].lower()}
 
415
 
416
  def filter_tooshort(entry):
417
  #print(f"The audio sample ({entry["audio"]["path"]}) is too small, and has been omitted. "
418
+ return len(entry["text"]) >= len(entry["audio"]["array"]) // 320 and len(entry["text"].strip()) >= 3
419
 
420
  def map_dataset(entry):
421
  batch = {"text": entry["text"].lower()}