Spaces:
Runtime error
Runtime error
karin.brisker
commited on
Commit
·
c71655e
1
Parent(s):
f655787
typing
Browse files- audio_to_transcript.py +2 -2
audio_to_transcript.py
CHANGED
@@ -35,10 +35,10 @@ class TranscribeAudio:
|
|
35 |
vtt_writer = whisper.utils.get_writer("vtt", directory)
|
36 |
|
37 |
# Save as an SRT file
|
38 |
-
srt_writer(result=transcript_output, audio_path=audio_file_path
|
39 |
|
40 |
# Save as a VTT file
|
41 |
-
vtt_writer(result=transcript_output, audio_path=audio_file_path
|
42 |
|
43 |
return f"{filename}.vtt"
|
44 |
|
|
|
35 |
vtt_writer = whisper.utils.get_writer("vtt", directory)
|
36 |
|
37 |
# Save as an SRT file
|
38 |
+
srt_writer(result=transcript_output, audio_path=audio_file_path)
|
39 |
|
40 |
# Save as a VTT file
|
41 |
+
vtt_writer(result=transcript_output, audio_path=audio_file_path)
|
42 |
|
43 |
return f"{filename}.vtt"
|
44 |
|