Vaibhavs10 / insanely-fast-whisper

Apache License 2.0
7.5k stars 529 forks source link

Ascii codec cant decode byte #142

Closed asusdisciple closed 9 months ago

asusdisciple commented 9 months ago

Sometimes this error appears with Insanely Fast Whisper when I use Flash Attention 2. Any ideas why this happens?

Traceback (most recent call last): File "/raid/nils/projects/Whisper/main.py", line 108, in for line in f: File "/usr/lib/python3.10/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 91: ordinal not in range(128)

Vaibhavs10 commented 9 months ago

Hi @asusdisciple - it appears you are running an outdated version of the CLI. do you mind running the following:

  1. pipx uninstall insanely-fast-whisper
  2. pipx install insanely-fast-whisper==0.0.13 --python python3.10 --force

After that try to use the with the same audio file as before.