qwen3_force_aligner / requirements.txt
sleeper371's picture
Fix Space build: pin full dependency chain to resolve pip resolver failure
01dd26b
Raw
History Blame
1.41 kB
# This is what the Hugging Face Space build actually installs (Spaces read
# requirements.txt, not pyproject.toml). Keep in sync with pyproject.toml.
#
# gradio itself is intentionally NOT pinned here: the Space builder already
# installs the exact `sdk_version` from README.md's frontmatter, and adding
# a second, looser requirement for it here only grows the resolver's search
# space.
#
# qwen-asr's own metadata leaves several transitive deps unpinned
# (librosa, qwen-omni-utils, flask, sox, pytz), which combined with a bare
# numpy/torch requirement makes pip's resolver back-track across a huge
# version matrix and fail with "Dependency resolution exceeded maximum
# depth". Pinning the whole chain to exact, known-mutually-compatible
# versions keeps the search space small.
#
# Two constraints this pins around, verified with `pip install --dry-run`:
# - gradio must stay <6.18.0: 6.18.0+ requires huggingface-hub>=1.2.0,
# which conflicts with transformers==4.57.6 (pinned by qwen-asr, needs
# huggingface-hub<1.0). README.md's sdk_version is pinned to 6.17.3
# to match — bump both together or not at all.
# - Space python_version must stay 3.11 (see README.md): soynlp==0.0.493
# (pinned by qwen-asr) fails to build on Python 3.12+.
torch==2.11.0
numpy==2.4.6
soundfile==0.14.0
librosa==0.11.0
qwen-omni-utils==0.0.9
flask==3.1.3
sox==1.5.0
pytz==2026.2
qwen-asr==0.0.6