Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TranscriptionOptions.__new__() missing 1 required positional argument: 'hotwords' #918

Open
Tejes opened this issue Nov 7, 2024 · 1 comment

Comments

@Tejes
Copy link

Tejes commented Nov 7, 2024

Since updating to WhisperX 3.1.6, I get the following error:

Traceback (most recent call last):
[...]
  File "/app/transcribe/models.py", line 168, in init_model
    self.model = whisperx.load_model(
                 ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/dist-packages/whisperx/asr.py", line 335, in load_model
    default_asr_options = faster_whisper.transcribe.TranscriptionOptions(**default_asr_options)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: TranscriptionOptions.__new__() missing 1 required positional argument: 'hotwords'

Looks like this should be fixed by #904 . Staying at 3.1.5 in the meantime.

@pramadikaegamo
Copy link

pramadikaegamo commented Nov 13, 2024

If you want to keep running it with the latest version without having to wait for improvements to the WhisperX repository, you can use the following method:

asr_options = {
"hotwords":None
}

model = whisperx.load_model("large-v2", device, compute_type=compute_type, asr_options=asr_options)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants