Update app.py
Browse files
app.py
CHANGED
@@ -215,7 +215,7 @@ def speech_to_text(video_file_path, selected_translation_lang, whisper_model):
|
|
215 |
try:
|
216 |
print(f'Transcribing via local model')
|
217 |
|
218 |
-
transcribe_options = dict(beam_size=
|
219 |
transcription = whisper_models_dict.get(whisper_model).transcribe(audio, **transcribe_options)
|
220 |
|
221 |
df = pd.DataFrame(columns=['start','end','text'])
|
|
|
215 |
try:
|
216 |
print(f'Transcribing via local model')
|
217 |
|
218 |
+
transcribe_options = dict(beam_size=3, best_of=3, without_timestamps=False)
|
219 |
transcription = whisper_models_dict.get(whisper_model).transcribe(audio, **transcribe_options)
|
220 |
|
221 |
df = pd.DataFrame(columns=['start','end','text'])
|