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

Error executing whisper #272

Open
ElliotBadinger opened this issue Jan 3, 2024 · 4 comments
Open

Error executing whisper #272

ElliotBadinger opened this issue Jan 3, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@ElliotBadinger
Copy link

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

@maige-app maige-app bot added the bug Something isn't working label Jan 3, 2024
@Luisotee
Copy link
Member

Luisotee commented Jan 3, 2024

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?

@ElliotBadinger
Copy link
Author

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.

@Luisotee
Copy link
Member

Luisotee commented Jan 4, 2024

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.

@ElliotBadinger
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants