-
-
Notifications
You must be signed in to change notification settings - Fork 782
/
Copy pathpyproject.toml
78 lines (70 loc) · 2.08 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[tool.poetry]
name = "chattts-ui"
version = "0.1.0"
description = "一个简单的本地网页界面,直接使用ChatTTS将文字合成为语音,同时支持对外提供API接口。"
authors = ["jianchang512 <[email protected]>"]
readme = "README.md"
homepage = "https://github.com/jianchang512/ChatTTS-ui"
repository = "https://github.com/jianchang512/ChatTTS-ui"
documentation = "https://github.com/jianchang512/ChatTTS-ui"
package-mode = false
[tool.poetry.dependencies]
python = "^3.10"
soundfile = "^0.12.1"
python-dotenv = "^1.0.1"
flask = "^3.0.3"
waitress = "^3.0.0"
modelscope = "^1.14.0"
langsegment = "^0.3.3"
omegaconf = "^2.3.0"
tokenizers = "^0.19.1"
transformers = "^4.41.2"
torch = [
{ version = "^2.3.0+cu118", source = "pytorch-gpu-src" },
{ platform = "darwin", version = "^2" }
]
torchaudio = [
{ version = "^2.3.0+cu118", source = "pytorch-gpu-src" },
{ platform = "darwin", version = "^2" }
]
vocos = "^0.1.0"
vector-quantize-pytorch = "^1.14.24"
numpy = { version = "^1.26.4" }
# Optional dependencies that are not downloaded by default
fastapi = { version = "*", extras = ["all"], optional = true }
pydantic = { version = "^2", optional = true }
[[tool.poetry.source]]
name = "pytorch-gpu-src"
url = "https://download.pytorch.org/whl/cu118"
priority = "explicit"
[tool.poetry.group.dev.dependencies]
black = "*"
ruff = "*"
[tool.poetry.group.test.dependencies]
# https://docs.pytest.org/en/stable/reference/plugin_list.html#plugin-list
# https://docs.pytest.org/en/stable/contents.html
pytest = "*"
# https://pytest-asyncio.readthedocs.io/en/latest/
pytest-asyncio = "*"
[tool.black]
line-length = 100
target-version = ["py310", "py311", "py312"]
skip-magic-trailing-comma = true
exclude = '''
/(
ChatTTS
| .*
| build
| dist
| migrations
| __pycache__
)/
'''
[tool.pytest.ini_options]
# https://docs.pytest.org/en/stable/reference/reference.html#configuration-options
testpaths = ["tests", "examples"]
asyncio_mode = "auto"
filterwarnings = "ignore::DeprecationWarning"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"