https://huggingface.co/spaces/Fancellu/bark-pytorch2.6-compatible
This solves the PyTorch 2.6 breaking change where weights_only=True became the default, causing issues with older model files that contain non-tensor objects, with monkey patch patched_load()
Updated to Python 3.11, latest Gradio, and requirements.txt
If you have a GPU, you can run from Docker Desktop directly
docker run -it -p 7860:7860 --gpus=all --platform=linux/amd64 registry.hf.space/fancellu-bark-pytorch2-6-compatible:latest python app.py
Make sure you have containerd turned on