From 9f6879eb941e507e96b63e8b971af7296282312b Mon Sep 17 00:00:00 2001 From: Lukin Date: Thu, 2 Apr 2026 23:14:27 +0800 Subject: [PATCH] fix: make gradio optional dep to resolve typer version conflict gradio==6.8.0 requires typer>=0.12 which conflicts with russian-text-stresser -> spacy==3.6.* -> typer<0.10.0. gradio is only used in demo scripts (gradio_*.py, multilingual_app.py) at the project root, not in the core src/chatterbox/ library. Move it to [project.optional-dependencies].demo instead. Co-Authored-By: Cody --- pyproject.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 828939f5..0f8d0e02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,6 @@ dependencies = [ "safetensors==0.5.3", "spacy-pkuseg", "pykakasi==2.3.0", - "gradio==6.8.0", "russian-text-stresser @ git+https://github.com/Vuizur/add-stress-to-epub", "auto-editor>=27.0.0", "pyloudnorm", @@ -45,6 +44,11 @@ build-backend = "setuptools.build_meta" [tool.setuptools.packages.find] where = ["src"] +[project.optional-dependencies] +demo = [ + "gradio==6.8.0", +] + [dependency-groups] dev = [ "gradio>=4.44.1",