assistant
assistant copied to clipboard
Error executing whisper
when I try to send a voice note to the bot I get an error message and the console prints the following message:
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?
here's how I set it on the .env file:
And here's how I named it from the terminal:
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.
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.
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.