assistant icon indicating copy to clipboard operation
assistant copied to clipboard

Error executing whisper

Open ElliotBadinger opened this issue 1 year ago • 4 comments

when I try to send a voice note to the bot I get an error message and the console prints the following message: image

ElliotBadinger avatar Jan 03 '24 20:01 ElliotBadinger

Is there a valid whisper model inside the models folder? And did you set correctly the name of the model that you are using in the .env file?

Luisotee avatar Jan 03 '24 20:01 Luisotee

here's how I set it on the .env file: image And here's how I named it from the terminal: image If it's of any consequence, I downloaded the file using the follwing command wget https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-large-v1.bin?download=true and renamed it to remove the download=true part using this command: mv 'ggml-large-v1.bin?download=true' ggml-large-v1.bin The model is as valid as it is in the HuggingFace site.

ElliotBadinger avatar Jan 03 '24 21:01 ElliotBadinger

Looks fine to me, the error says the format is invalid. I would recommend you to test the whisper model alone in the terminal to see if you can make it work, you can try it by following this: https://github.com/ggerganov/whisper.cpp#quick-start

Other thing that I got when I ran the program in linux is a error that came from permissions, can't remember the error rn and I dont think it's the problem that you are getting but running chmod +x /assistant/whisper/main fixed an error that I was getting.

Luisotee avatar Jan 04 '24 19:01 Luisotee

I ran the model from the whisper.cpp project with the provided samples and it runs without any issues. I even changed the permissions using chmod +x but still got the same error output.

ElliotBadinger avatar Jan 05 '24 07:01 ElliotBadinger