We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As per the readme suggest I tried:
import whisper speech_file = "test.mp3" text = whisper.transcribe(speech_file)["text"] print(text)
And got
(venv) (base) ➜ whisper git:(main) ✗ python app.py Traceback (most recent call last): File "/Users/adrian/Developer/mlx-examples/whisper/app.py", line 5, in <module> text = whisper.transcribe(speech_file)["text"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/adrian/Developer/mlx-examples/whisper/whisper/transcribe.py", line 303, in transcribe timestamps = tokens[timestamp_tokens.nonzero().flatten()] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'tuple' object has no attribute 'flatten'
The text was updated successfully, but these errors were encountered:
I encountered the same error, but resolved it with this PR.
#12
Sorry, something went wrong.
Should be fixed with #12
No branches or pull requests
As per the readme suggest I tried:
And got
The text was updated successfully, but these errors were encountered: