Skip to content

Commit

Permalink
fix whisperx load error
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusbach committed Nov 20, 2023
1 parent dbc125c commit 5784370
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion legen.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
import whisperx_utils

whisper_model = whisperx.load_model(
whisper_arch=args.model, device=torch_device, compute_type=compute_type)
whisper_arch=args.model, device=torch_device, compute_type=compute_type, asr_options={"repetition_penalty": 1, "prompt_reset_on_temperature": 0.5, "no_repeat_ngram_size": 2,})
else:
import whisper

Expand Down

0 comments on commit 5784370

Please sign in to comment.