qwen3_force_aligner / pyproject.toml
sleeper371's picture
Add @spaces.GPU decorator for ZeroGPU Space compatibility
0189aeb
Raw
History Blame Contribute Delete
1.3 kB
[project]
name = "qwen3-force-aligner-space"
version = "0.1.0"
description = "Gradio Space wrapping Qwen3-ForcedAligner-0.6B for text-audio forced alignment"
readme = "README.md"
# Capped at <3.12: soynlp==0.0.493 (a hard pin of qwen-asr) fails to build
# on Python 3.12+. See requirements.txt for the full explanation.
requires-python = ">=3.10,<3.12"
license = { text = "Apache-2.0" }
dependencies = [
# gradio must stay <6.18.0 (huggingface-hub conflict with transformers
# via qwen-asr) — see requirements.txt for details. Matches README.md's
# sdk_version.
"gradio==6.17.3",
# ZeroGPU SDK: provides the `@spaces.GPU` decorator app.py uses. A
# no-op on non-ZeroGPU hardware / local dev.
"spaces==0.50.4",
"qwen-asr==0.0.6",
"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",
]
[project.optional-dependencies]
dev = [
"gradio-client>=1.0",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
# This project is a Space app, not a library: just ship the two top-level
# modules so `pip install .` / `pip install -e .` succeed for local dev.
include = ["app.py", "aligner.py"]