Thao Pham
commited on
Commit
·
e9f073f
1
Parent(s):
5de0912
add verbose during video transcribe
Browse files- video_utils.py +1 -1
video_utils.py
CHANGED
@@ -35,7 +35,7 @@ def transcribe_video(path_to_extracted_audio_file, output_folder, whisper_model=
|
|
35 |
# load model
|
36 |
if whisper_model is None:
|
37 |
whisper_model = whisper.load_model("small")
|
38 |
-
options = dict(task="translate", best_of=1, language='en')
|
39 |
results = whisper_model.transcribe(path_to_extracted_audio_file, **options)
|
40 |
|
41 |
vtt = getSubs(results["segments"], "vtt")
|
|
|
35 |
# load model
|
36 |
if whisper_model is None:
|
37 |
whisper_model = whisper.load_model("small")
|
38 |
+
options = dict(task="translate", best_of=1, language='en', verbose=True)
|
39 |
results = whisper_model.transcribe(path_to_extracted_audio_file, **options)
|
40 |
|
41 |
vtt = getSubs(results["segments"], "vtt")
|