[Errno 2] No such file or directory: 'ffmpeg'
Hi,I’m trying to host a wav2vec2 fine-tuned model on huggingface with a custom pipeline following this templatehuggingface.cotemplates/automatic-speech-recognition · Hugging FaceWe’re on a journey to advance and democratize artificial intelligence through open source and open science.However, when trying to test the model from the Hosted inference API, I got this error[Errno 2] No such file or directory: ‘ffmpeg’I’m using these meta data on the model cardtags:automatic-speech-recognitionlibrary_name: generic
2023-10-06T04:51:30Z
Hi! And welcome to the community.Did you install FFMpeg in your environment?e.g. pip install ffmpeg
2023-10-06T06:24:06Z
Hi and thanks for your reply.I tried to add the ffmpeg to the requirements.txt file but still same error. Is there a way to specify system install not Python package as I believe ffmpeg needs to be installed to the OS hosting the inference API.
2023-10-06T07:44:35Z
Yes you are right. It’s been a while since I had this issue.So, pythonffmpeg-pythonpackage doesn’t install ffmpeg itself. You have to install it manually on your machine. Take a look here:Download FFmpegAnother solution, and the one I ultimately chose, is to install ffmpeg on a win machine using choco. One of these two solutions should solve the issue for you.choco install ffmpeg
2023-10-09T00:37:04Z
Thanks. The issue is not in my machine I’m trying to host it to the HF repo. See the template above to get what I mean.