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

Syntax error on model_name #6

Open
CRad14 opened this issue Jan 8, 2023 · 1 comment
Open

Syntax error on model_name #6

CRad14 opened this issue Jan 8, 2023 · 1 comment

Comments

@CRad14
Copy link

CRad14 commented Jan 8, 2023

I think this is a really cool project and am trying to get it working unfortunately I keep getting this error

python -m pyannote_whisper.cli.transcribe ~/Downloads/preamble10.wav --model medium --diarization True
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
File "/usr/lib/python2.7/runpy.py", line 119, in _get_module_details
code = loader.get_code(mod_name)
File "/usr/lib/python2.7/pkgutil.py", line 281, in get_code
self.code = compile(source, self.filename, 'exec')
File "/home/conrad/Documents/pyannote-whisper-main/pyannote_whisper/cli/transcribe.py", line 67
model_name: str = args.pop("model")
^
SyntaxError: invalid syntax

Any thoughts?

@yinruiqing
Copy link
Owner

Whisper used Python 3.9.9. Please check your python version.

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

2 participants