Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def transcribe_audio(zip_file, progress = gr.Progress(track_tqdm= True)):
|
|
| 28 |
# Transcribe each audio file
|
| 29 |
transcriptions = {}
|
| 30 |
for audio_file in audio_files:
|
| 31 |
-
segments, info = model.transcribe(
|
| 32 |
for segment in segments:
|
| 33 |
return "[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text)
|
| 34 |
transcriptions[os.path.basename(audio_file)] = transcription
|
|
|
|
| 28 |
# Transcribe each audio file
|
| 29 |
transcriptions = {}
|
| 30 |
for audio_file in audio_files:
|
| 31 |
+
segments, info = model.transcribe(audio_file)
|
| 32 |
for segment in segments:
|
| 33 |
return "[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text)
|
| 34 |
transcriptions[os.path.basename(audio_file)] = transcription
|