Spaces:
Running
Running
[tool.poetry] | |
name = "audio-translator" | |
version = "0.1.0" | |
description = "High-quality audio translation web application" | |
authors = ["Your Name <[email protected]>"] | |
license = "MIT" | |
readme = "README.md" | |
homepage = "https://github.com/yourusername/audio-translator" | |
repository = "https://github.com/yourusername/audio-translator" | |
keywords = ["nlp", "translation", "speech-processing"] | |
[tool.poetry.dependencies] | |
python = "^3.9" | |
# Core application dependencies | |
streamlit = ">=1.31,<2.0" | |
python-dotenv = ">=1.0" | |
nltk = ">=3.8" | |
librosa = ">=0.10" | |
soundfile = ">=0.12" | |
ffmpeg-python = ">=0.2" | |
kokoro = ">=0.7.9" | |
# Machine learning dependencies | |
#torch = [ | |
# { version = ">=2.0,<3.0", source = "pytorch", markers = "sys_platform != 'darwin'" }, | |
# { version = ">=2.0,<3.0", source = "pytorch-mac", markers = "sys_platform == 'darwin'" } | |
#] | |
torch = { version = ">=2.0,<3.0" } | |
transformers = { version = ">=4.33", extras = ["audio"] } | |
TTS = ">=0.20,<1.0" | |
# Platform-specific audio dependencies | |
torchaudio = { version = ">=2.0,<3.0", optional = true } | |
[build-system] | |
requires = ["poetry-core>=1.3"] | |
build-backend = "poetry.core.masonry.api" | |
[[tool.poetry.source]] | |
name = "pytorch" | |
url = "https://download.pytorch.org/whl/cpu" | |
priority = "supplemental" | |
[[tool.poetry.source]] | |
name = "pytorch-mac" | |
url = "https://download.pytorch.org/whl/cpu" | |
priority = "supplemental" | |
[[tool.poetry.source]] | |
name = "tsinghua" | |
url = "https://pypi.tuna.tsinghua.edu.cn/simple" | |
priority = "primary" | |
[tool.poetry.extras] | |
gpu = ["torchaudio"] | |
[tool.poetry.scripts] | |
start = "app:main" |