fishaudio / fish-speech

Brand new TTS solution
https://speech.fish.audio
Other
14.62k stars 1.11k forks source link

Docker runtime error #660

Closed aamir-gmail closed 1 week ago

aamir-gmail commented 2 weeks ago

Self Checks

Cloud or Self Hosted

Self Hosted (Docker)

Environment Details

docker file as provided by the repo

Steps to Reproduce

docker build -t voicellm:latest . docker run --name voicelm -p 7860:7860 voicellm:latest

✔️ Expected Behavior

I expected the llm web UI to run

❌ Actual Behavior

/opt/fish-speech/fish_speech/text/chn_text_norm/text.py:71: SyntaxWarning: invalid escape sequence '\d'

ArianaStar commented 1 week ago

Hii @aamir-gmail, I believe I can help you in this matter.

Try this: docker exec -it <container_id_or_name> pip install cachetools Replace <container_id_or_name> with the ID from your Fish container.

It's important to know that the container most likely must be running before you try this.

This fixed the issue for me, I hope this helps you.

shaxiaozz commented 1 week ago

@ArianaStar I think the step pip install cachetools should be included in the Dockerfile, since running a container in the background is a common requirement.

shaxiaozz commented 1 week ago

ps: This is my docker run command

docker run -d \
    --name fish-speech \
    --gpus all \
    -p 7860:7860 \
    -e GRADIO_SERVER_NAME=0.0.0.0 \
    -v ${PWD}/checkpoints_data:/opt/fish-speech/checkpoints \
    --restart always \
    fishaudio/fish-speech:latest \
    /bin/bash -c "pip install cachetools; /opt/fish-speech/entrypoint.sh"
aamir-gmail commented 1 week ago

Thank you for your response I will try this out.

On Fri, Nov 15, 2024 at 12:45 AM spicysama @.***> wrote:

Closed #660 https://github.com/fishaudio/fish-speech/issues/660 as completed via #676 https://github.com/fishaudio/fish-speech/pull/676.

— Reply to this email directly, view it on GitHub https://github.com/fishaudio/fish-speech/issues/660#event-15298757536, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJA2ECMY7QIMQ6WYKOFMVST2ASSQZAVCNFSM6AAAAABRH3H6SKVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVGI4TQNZVG42TGNQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Kind Regards

Aamir Mirza