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

error while running flask #2

Open
pierronaval opened this issue Jan 4, 2024 · 2 comments
Open

error while running flask #2

pierronaval opened this issue Jan 4, 2024 · 2 comments

Comments

@pierronaval
Copy link

I've got this issue while lunchning flask

(venv) PS C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting> flask run
Loading Speech Model...
[2024-01-04 17:54:51.920] [ctranslate2] [thread 52836] [warning] The compute type inferred from the saved model is float16, but the target device or backend do not support efficient float16 computation. The model weights have been automatically converted to use the float32 compute type instead.
Traceback (most recent call last):
File "C:\Users\Pierre\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 192, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\Pierre\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\venv\Scripts\flask.exe_main
.py", line 7, in
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\venv\lib\site-packages\flask\cli.py", line 1064, in main
cli.main()
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\venv\lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\venv\lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\venv\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\venv\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\venv\lib\site-packages\click\decorators.py", line 92, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\venv\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\venv\lib\site-packages\flask\cli.py", line 912, in run_command
raise e from None
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\venv\lib\site-packages\flask\cli.py", line 898, in run_command
app = info.load_app()
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\venv\lib\site-packages\flask\cli.py", line 313, in load_app
app = locate_app(import_name, None, raise_if_not_found=False)
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\venv\lib\site-packages\flask\cli.py", line 219, in locate_app
import(module_name)
File "C:\Users\Pierre\PycharmProjects\LLM-Minutes-of-Meeting\app.py", line 42, in
speech_pipeline = Faster_Whisper(MODEL_TO_RUN)
TypeError: init() should return None, not 'WhisperModel'

@djuillard
Copy link

Hi,

Same error here...

@sparvaneh
Copy link

It's the same error for me. I would appreciate any suggestions to solve the issue.

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