Spaces:
Sleeping
Sleeping
Michael Hu
commited on
Commit
·
5ae79ee
1
Parent(s):
2f4a906
update
Browse files- pyproject.toml +32 -39
pyproject.toml
CHANGED
|
@@ -1,65 +1,58 @@
|
|
| 1 |
[tool.poetry]
|
| 2 |
-
name = "
|
| 3 |
version = "0.1.0"
|
| 4 |
description = "High-quality audio translation web application"
|
| 5 |
authors = ["Your Name <your.email@example.com>"]
|
| 6 |
license = "MIT"
|
|
|
|
|
|
|
|
|
|
| 7 |
keywords = ["nlp", "translation", "speech-processing"]
|
| 8 |
|
| 9 |
[tool.poetry.dependencies]
|
| 10 |
python = "^3.9"
|
| 11 |
|
| 12 |
-
# Core dependencies
|
| 13 |
-
streamlit = "
|
| 14 |
-
pydub = "
|
| 15 |
-
python-dotenv = "
|
| 16 |
-
nltk = "
|
| 17 |
-
librosa = "
|
| 18 |
-
soundfile = "
|
| 19 |
-
ffmpeg-python = "
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
# Text-to-speech engine
|
| 26 |
-
TTS = "^0.21.0"
|
| 27 |
-
|
| 28 |
-
# Platform-specific dependencies
|
| 29 |
-
torchaudio = { version = "^2.2.1", source = "pytorch", optional = true }
|
| 30 |
-
|
| 31 |
-
[tool.poetry.group.dev.dependencies]
|
| 32 |
-
black = "^24.3.0"
|
| 33 |
-
flake8 = "^6.1.0"
|
| 34 |
-
mypy = "^1.8.0"
|
| 35 |
-
pytest = "^8.0.2"
|
| 36 |
|
| 37 |
[[tool.poetry.source]]
|
| 38 |
name = "pytorch"
|
| 39 |
url = "https://download.pytorch.org/whl/cpu"
|
| 40 |
priority = "supplemental"
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
[[tool.poetry.source]]
|
| 43 |
name = "tsinghua"
|
| 44 |
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
|
| 45 |
priority = "primary"
|
| 46 |
|
| 47 |
-
[build-system]
|
| 48 |
-
requires = ["poetry-core>=1.3.2"]
|
| 49 |
-
build-backend = "poetry.core.masonry.api"
|
| 50 |
-
|
| 51 |
[tool.poetry.extras]
|
| 52 |
gpu = ["torchaudio"]
|
| 53 |
|
| 54 |
[tool.poetry.scripts]
|
| 55 |
-
start = "app:main"
|
| 56 |
-
|
| 57 |
-
[project.urls]
|
| 58 |
-
Documentation = "https://github.com/yourusername/audio-translator/wiki"
|
| 59 |
-
Issue-Tracker = "https://github.com/yourusername/audio-translator/issues"
|
| 60 |
-
|
| 61 |
-
# Configuration notes:
|
| 62 |
-
# 1. Torch dependencies are sourced from PyTorch's official repository
|
| 63 |
-
# 2. Transformers include audio processing extras
|
| 64 |
-
# 3. GPU support can be enabled via: poetry install --extras "gpu"
|
| 65 |
-
# 4. Platform-specific dependencies are handled through optional groups
|
|
|
|
| 1 |
[tool.poetry]
|
| 2 |
+
name = "audio-translator"
|
| 3 |
version = "0.1.0"
|
| 4 |
description = "High-quality audio translation web application"
|
| 5 |
authors = ["Your Name <your.email@example.com>"]
|
| 6 |
license = "MIT"
|
| 7 |
+
readme = "README.md"
|
| 8 |
+
homepage = "https://github.com/yourusername/audio-translator"
|
| 9 |
+
repository = "https://github.com/yourusername/audio-translator"
|
| 10 |
keywords = ["nlp", "translation", "speech-processing"]
|
| 11 |
|
| 12 |
[tool.poetry.dependencies]
|
| 13 |
python = "^3.9"
|
| 14 |
|
| 15 |
+
# Core application dependencies
|
| 16 |
+
streamlit = ">=1.31,<2.0"
|
| 17 |
+
pydub = ">=0.25"
|
| 18 |
+
python-dotenv = ">=1.0"
|
| 19 |
+
nltk = ">=3.8"
|
| 20 |
+
librosa = ">=0.10"
|
| 21 |
+
soundfile = ">=0.12"
|
| 22 |
+
ffmpeg-python = ">=0.2"
|
| 23 |
+
|
| 24 |
+
# Machine learning dependencies
|
| 25 |
+
torch = [
|
| 26 |
+
{ version = ">=2.0,<3.0", source = "pytorch", markers = "sys_platform != 'darwin'" },
|
| 27 |
+
{ version = ">=2.0,<3.0", source = "pytorch-mac", markers = "sys_platform == 'darwin'" }
|
| 28 |
+
]
|
| 29 |
+
transformers = { version = ">=4.30", extras = ["audio"] }
|
| 30 |
+
TTS = ">=0.20,<1.0"
|
| 31 |
+
|
| 32 |
+
# Platform-specific audio dependencies
|
| 33 |
+
torchaudio = { version = ">=2.0,<3.0", optional = true }
|
| 34 |
|
| 35 |
+
[build-system]
|
| 36 |
+
requires = ["poetry-core>=1.3"]
|
| 37 |
+
build-backend = "poetry.core.masonry.api"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
[[tool.poetry.source]]
|
| 40 |
name = "pytorch"
|
| 41 |
url = "https://download.pytorch.org/whl/cpu"
|
| 42 |
priority = "supplemental"
|
| 43 |
|
| 44 |
+
[[tool.poetry.source]]
|
| 45 |
+
name = "pytorch-mac"
|
| 46 |
+
url = "https://download.pytorch.org/whl/cpu"
|
| 47 |
+
priority = "supplemental"
|
| 48 |
+
|
| 49 |
[[tool.poetry.source]]
|
| 50 |
name = "tsinghua"
|
| 51 |
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
|
| 52 |
priority = "primary"
|
| 53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
[tool.poetry.extras]
|
| 55 |
gpu = ["torchaudio"]
|
| 56 |
|
| 57 |
[tool.poetry.scripts]
|
| 58 |
+
start = "app:main"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|