UnboundLocalError: local variable 'get_tokenizer' referenced before assignment
When using Whisper-large-v3-turbo support. This error occurs, and I have confirmed that whisper is already installed.
When using the model 'iic/Whisper-large-v3', the error "local variable 'get_tokenizer' referenced before assignment" occurs repeatedly.
When using the model 'Whisper-large-v3', the error "UnboundLocalError: cannot access local variable 'get_tokenizer' where it is not associated with a value“ also occurs repeatedly.
When using Whisper-large-v3-turbo support. This error occurs, and I have confirmed that whisper is already installed.
Just reduce the torch version to 2.2.0
It doesn't work
When using Whisper-large-v3-turbo support. This error occurs, and I have confirmed that whisper is already installed.
Just reduce the torch version to 2.2.0
pip install -U openai-whisper can solve this problem