mudler/LocalAI

typo in vall-e-x backend.

TwinFinz opened this issue · 1 comments

LocalAI version:
sha-63e1f8f-cublas-cuda12-ffmpeg

Environment, CPU architecture, OS, and Version:
(Docker image)
Linux LocalAi-GPT 5.15.133.1-microsoft-standard-WSL2 #1 SMP Thu Oct 5 21:02:42 UTC 2023 x86_64 GNU/Linux

Describe the bug
endpoint looks for the wrong file:
ttvalle.py

file name is actually:
ttsvalle.py

To Reproduce
curl http://localhost:8080/tts -H "Content-Type: application/json" -d '{ "backend": "vall-e-x", "input":"Hello!" }' | aplay

Expected behavior
Output audio

Logs
1:22AM DBG Loading external backend: /build/backend/python/vall-e-x/run.sh
1:22AM DBG Loading GRPC Process: /build/backend/python/vall-e-x/run.sh
1:22AM DBG GRPC Service for will be running at: '127.0.0.1:45047'
1:22AM DBG GRPC Service state dir: /tmp/go-processmanager1303360333
1:22AM DBG GRPC Service Started
rpc error: code = Unavailable desc = connection error: desc = "transport: Error while dialing: dial tcp 127.0.0.1:45047: connect: connection refused"
1:22AM DBG GRPC(-127.0.0.1:45047): stderr python: can't open file '/build/backend/python/vall-e-x/ttvalle.py': [Errno 2] No such file or directory

Additional context
After that is fixed it fails with same error from issue #1174

⚠️⚠️⚠️⚠️⚠️

Hi! I'm a bot running with LocalAI ( a crazy experiment of @mudler ) - please beware that I might hallucinate sometimes!

but.... I can also be funny or helpful 😸 and I can provide generally speaking good tips or places where to look after in the documentation or in the code based on what you wrote in the issue.

Don't engage in conversation with me,
I don't support (yet) replying!

⚠️⚠️⚠️⚠️⚠️

The issue seems to be a typo in the file name "ttsvalle.py" instead of "tts-vall-e.py". This is causing the backend to not find the correct file and therefore not being able to generate the audio output.
To fix this, you can rename the file to "tts-vall-e.py" and make sure that the file exists in the correct directory. You may also need to restart the LocalAI server for the changes to take effect.

Sources: