Softcatala / whisper-ctranslate2

Whisper command line client compatible with original OpenAI client based on CTranslate2.
MIT License
913 stars 78 forks source link

TypeError: WhisperModel.transcribe() got an unexpected keyword argument 'hotwords'? #111

Closed silvacarl2 closed 1 week ago

silvacarl2 commented 1 week ago

got this strange error today, any ideas?

time whisper-ctranslate2 --model large-v3-turbo --output_format txt --initial_prompt "bupren orphine hydroxyzine naloxone triamcinolone venlafaxine" 21514473.mp3 Detecting language using up to the first 30 seconds. Use --language to specify the language config.json: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.26k/2.26k [00:00<00:00, 17.1MB/s] tokenizer.json: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2.71M/2.71M [00:00<00:00, 12.2MB/s] Error: Unable to process file: 21514473.mp3 Exception Type: TypeError Exception Message: WhisperModel.transcribe() got an unexpected keyword argument 'hotwords' Traceback: Traceback (most recent call last): File "/home/silvacarl/.local/lib/python3.10/site-packages/src/whisper_ctranslate2/whisper_ctranslate2.py", line 242, in main result = transcribe.inference( File "/home/silvacarl/.local/lib/python3.10/site-packages/src/whisper_ctranslate2/transcribe.py", line 132, in inference segments, info = self.model.transcribe( TypeError: WhisperModel.transcribe() got an unexpected keyword argument 'hotwords'

jordimas commented 1 week ago

Hello!

Which version of faster-whisper do you have installed?

You can check by doing:

pip list | grep faster-whisper

You have faster-whisper==1.02 or new installed

silvacarl2 commented 1 week ago

yup fixed!