jlonsako commited on
Commit
501a543
1 Parent(s): bdf8943

Fix bug on line 207

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -161,7 +161,7 @@ def Transcribe(file):
161
  beam_search_result = beam_search_decoder(logits.to("cpu"))
162
 
163
  # Transcribe each segment in the batch
164
- for i in range(batch_size):
165
  transcription = " ".join(beam_search_result[i][0].words).strip()
166
  print(transcription)
167
  transcripts.append(transcription)
 
161
  beam_search_result = beam_search_decoder(logits.to("cpu"))
162
 
163
  # Transcribe each segment in the batch
164
+ for i in range(len(batch))):
165
  transcription = " ".join(beam_search_result[i][0].words).strip()
166
  print(transcription)
167
  transcripts.append(transcription)