Commit
·
555839a
1
Parent(s):
55728fe
use distil-whisper-large-v3
Browse files- src/transcriber.py +1 -1
src/transcriber.py
CHANGED
@@ -48,7 +48,7 @@ def transcriber(video_input:gr.File,
|
|
48 |
task:str):
|
49 |
srt_filepath = os.path.normpath(f"{video_input.split('.')[0]}.srt")
|
50 |
audio_input = convert_video_to_audio(video_input)
|
51 |
-
model_size = "large-v3"
|
52 |
model = WhisperModel(model_size, device="cpu", compute_type="int8")
|
53 |
segments, _ = model.transcribe(
|
54 |
audio_input,
|
|
|
48 |
task:str):
|
49 |
srt_filepath = os.path.normpath(f"{video_input.split('.')[0]}.srt")
|
50 |
audio_input = convert_video_to_audio(video_input)
|
51 |
+
model_size = "distil-large-v3"
|
52 |
model = WhisperModel(model_size, device="cpu", compute_type="int8")
|
53 |
segments, _ = model.transcribe(
|
54 |
audio_input,
|