Spaces:
Sleeping
Sleeping
Fix bug on line 207
Browse files
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(
|
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)
|