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

Issue with transformers and faster whisper #4

Open
aman696 opened this issue Apr 28, 2024 · 2 comments
Open

Issue with transformers and faster whisper #4

aman696 opened this issue Apr 28, 2024 · 2 comments

Comments

@aman696
Copy link

aman696 commented Apr 28, 2024

So its giving me error like transformer version needs 4.0 something and tokenizer version required is 1.9 for that but faster whisper needs tokenizer below 1.5. And as well getting the following error when running flask
TypeError: init() should return None, not 'WhisperModel'

@santamanicka
Copy link

I got the same error when I run "flask run". Here's the error log:
Traceback (most recent call last):
File "/Users/smanicka82/miniconda3/bin/flask", line 8, in
sys.exit(main())
^^^^^^
File "/Users/smanicka82/miniconda3/lib/python3.11/site-packages/flask/cli.py", line 1105, in main
cli.main()
File "/Users/smanicka82/miniconda3/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/smanicka82/miniconda3/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/smanicka82/miniconda3/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/smanicka82/miniconda3/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/smanicka82/miniconda3/lib/python3.11/site-packages/click/decorators.py", line 92, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/smanicka82/miniconda3/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/smanicka82/miniconda3/lib/python3.11/site-packages/flask/cli.py", line 953, in run_command
raise e from None
File "/Users/smanicka82/miniconda3/lib/python3.11/site-packages/flask/cli.py", line 937, in run_command
app: WSGIApplication = info.load_app()
^^^^^^^^^^^^^^^
File "/Users/smanicka82/miniconda3/lib/python3.11/site-packages/flask/cli.py", line 335, in load_app
app = locate_app(import_name, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/smanicka82/miniconda3/lib/python3.11/site-packages/flask/cli.py", line 245, in locate_app
import(module_name)
File "/Users/smanicka82/PycharmProjects/LLM-Minutes-of-Meeting/app.py", line 42, in
speech_pipeline = Faster_Whisper(MODEL_TO_RUN)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: init() should return None, not 'WhisperModel'

@k-praveen-trellis
Copy link

Can you share your environment details, underlying python, and system details?

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