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 · 2 comments

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)

@Manamama
Copy link

A very good tip. I had to wipe my Prooted Debian on Termux, and thus inadvertently upgraded all thereby. The whisperx based scripts then stopped working.
BTW, version 3.1.5 installs different versions of other python modules than the 3.16 (and probably later ones) do, so one may try that older one if it may work on your non-standard *nix. (The most recent whisperx versions unexpectedly run also on barebones Termux, without any proot, now - while before it always ended in segmentation fault.)

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

3 participants