Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,9 +28,9 @@ 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 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
transcriptions[os.path.basename(audio_file)] = transcription
|
| 35 |
|
| 36 |
return transcriptions
|
|
|
|
| 28 |
# Transcribe each audio file
|
| 29 |
transcriptions = {}
|
| 30 |
for audio_file in audio_files:
|
| 31 |
+
segments, info = model.transcribe("audio.mp3")
|
| 32 |
+
for segment in segments:
|
| 33 |
+
return "[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text)
|
| 34 |
transcriptions[os.path.basename(audio_file)] = transcription
|
| 35 |
|
| 36 |
return transcriptions
|