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