Spaces:
Running
Running
twitchard
commited on
Migrate to uv
Browse files- README.md +13 -30
- pyproject.toml +17 -17
- requirements.txt +0 -63
- uv.lock +0 -0
README.md
CHANGED
@@ -46,53 +46,36 @@ Expressive TTS Arena/
|
|
46 |
|
47 |
## Installation
|
48 |
|
49 |
-
1.
|
50 |
|
51 |
-
|
52 |
-
```sh
|
53 |
-
python -m venv gradio-env
|
54 |
-
source gradio-env/bin/activate
|
55 |
-
```
|
56 |
-
|
57 |
-
Windows
|
58 |
-
```sh
|
59 |
-
python -m venv gradio-env
|
60 |
-
gradio-env\Scripts\activate
|
61 |
-
```
|
62 |
-
|
63 |
-
2. Install dependencies:
|
64 |
-
```sh
|
65 |
-
pip install -r requirements.txt
|
66 |
-
```
|
67 |
-
|
68 |
-
3. (Optional) If contributing, install pre-commit hook for automatic file formatting:
|
69 |
-
```sh
|
70 |
-
pre-commit install
|
71 |
-
```
|
72 |
-
|
73 |
-
4. Configure environment variables:
|
74 |
- Create a `.env` file based on `.env.example`
|
75 |
- Add your API keys:
|
76 |
|
77 |
-
```
|
78 |
HUME_API_KEY=YOUR_HUME_API_KEY
|
79 |
ANTHROPIC_API_KEY=YOUR_ANTHROPIC_API_KEY
|
80 |
ELEVENLABS_API_KEY=YOUR_ELEVENLABS_API_KEY
|
81 |
```
|
82 |
|
83 |
-
|
84 |
|
85 |
Standard
|
86 |
```sh
|
87 |
-
python -m src.app
|
88 |
```
|
89 |
|
90 |
With hot-reloading
|
91 |
```sh
|
92 |
-
watchfiles "python -m src.app" src
|
93 |
```
|
94 |
|
95 |
-
|
|
|
|
|
|
|
|
|
|
|
96 |
|
97 |
## User Flow
|
98 |
|
@@ -102,4 +85,4 @@ Expressive TTS Arena/
|
|
102 |
4. **Vote for Your Favorite:** Click "Vote for option A" or "Vote for option B" to choose your favorite.
|
103 |
|
104 |
## License
|
105 |
-
This project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details.
|
|
|
46 |
|
47 |
## Installation
|
48 |
|
49 |
+
1. This project uses the [uv](https://docs.astral.sh/uv/) package manager. Follow the installation instructions for your platform [here](https://docs.astral.sh/uv/getting-started/installation/).
|
50 |
|
51 |
+
2. Configure environment variables:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
- Create a `.env` file based on `.env.example`
|
53 |
- Add your API keys:
|
54 |
|
55 |
+
```txt
|
56 |
HUME_API_KEY=YOUR_HUME_API_KEY
|
57 |
ANTHROPIC_API_KEY=YOUR_ANTHROPIC_API_KEY
|
58 |
ELEVENLABS_API_KEY=YOUR_ELEVENLABS_API_KEY
|
59 |
```
|
60 |
|
61 |
+
3. Run the application:
|
62 |
|
63 |
Standard
|
64 |
```sh
|
65 |
+
uv run python -m src.app
|
66 |
```
|
67 |
|
68 |
With hot-reloading
|
69 |
```sh
|
70 |
+
uv run watchfiles "python -m src.app" src
|
71 |
```
|
72 |
|
73 |
+
4. Test the application by navigating to the the localhost URL in your browser (e.g. `localhost:7860` or `http://127.0.0.1:7860`)
|
74 |
+
|
75 |
+
5. (Optional) If contributing, install pre-commit hook for automatic file formatting:
|
76 |
+
```sh
|
77 |
+
uv run pre-commit install
|
78 |
+
```
|
79 |
|
80 |
## User Flow
|
81 |
|
|
|
85 |
4. **Vote for Your Favorite:** Click "Vote for option A" or "Vote for option B" to choose your favorite.
|
86 |
|
87 |
## License
|
88 |
+
This project is licensed under the MIT License - see the [LICENSE.txt](LICENSE.txt) file for details.
|
pyproject.toml
CHANGED
@@ -1,24 +1,24 @@
|
|
1 |
-
[build-system]
|
2 |
-
requires = ["setuptools", "wheel"]
|
3 |
-
build-backend = "setuptools.build_meta"
|
4 |
-
|
5 |
[project]
|
6 |
name = "expressive-tts-arena"
|
7 |
version = "0.1.0"
|
|
|
|
|
|
|
8 |
dependencies = [
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
]
|
16 |
|
17 |
-
[
|
18 |
dev = [
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
1 |
[project]
|
2 |
name = "expressive-tts-arena"
|
3 |
version = "0.1.0"
|
4 |
+
description = "Add your description here"
|
5 |
+
readme = "README.md"
|
6 |
+
requires-python = ">=3.11"
|
7 |
dependencies = [
|
8 |
+
"anthropic>=0.45.2",
|
9 |
+
"elevenlabs>=1.50.7",
|
10 |
+
"gradio>=5.15.0",
|
11 |
+
"python-dotenv>=1.0.1",
|
12 |
+
"requests>=2.32.3",
|
13 |
+
"tenacity>=9.0.0",
|
14 |
]
|
15 |
|
16 |
+
[dependency-groups]
|
17 |
dev = [
|
18 |
+
"black>=25.1.0",
|
19 |
+
"mypy>=1.15.0",
|
20 |
+
"pre-commit>=4.1.0",
|
21 |
+
"pytest>=8.3.4",
|
22 |
+
"ruff>=0.9.5",
|
23 |
+
"watchfiles>=1.0.4",
|
24 |
+
]
|
requirements.txt
DELETED
@@ -1,63 +0,0 @@
|
|
1 |
-
aiofiles==23.2.1
|
2 |
-
annotated-types==0.7.0
|
3 |
-
anthropic==0.45.2
|
4 |
-
anyio==4.8.0
|
5 |
-
black==25.1.0
|
6 |
-
certifi==2024.12.14
|
7 |
-
charset-normalizer==3.4.1
|
8 |
-
click==8.1.8
|
9 |
-
distro==1.9.0
|
10 |
-
elevenlabs==1.50.6
|
11 |
-
fastapi==0.115.7
|
12 |
-
ffmpy==0.5.0
|
13 |
-
filelock==3.17.0
|
14 |
-
fsspec==2024.12.0
|
15 |
-
gradio==5.13.1
|
16 |
-
gradio_client==1.6.0
|
17 |
-
h11==0.14.0
|
18 |
-
httpcore==1.0.7
|
19 |
-
httpx==0.28.1
|
20 |
-
huggingface-hub==0.27.1
|
21 |
-
idna==3.10
|
22 |
-
Jinja2==3.1.5
|
23 |
-
jiter==0.8.2
|
24 |
-
markdown-it-py==3.0.0
|
25 |
-
MarkupSafe==2.1.5
|
26 |
-
mdurl==0.1.2
|
27 |
-
mypy-extensions==1.0.0
|
28 |
-
numpy==2.2.2
|
29 |
-
orjson==3.10.15
|
30 |
-
packaging==24.2
|
31 |
-
pandas==2.2.3
|
32 |
-
pathspec==0.12.1
|
33 |
-
pillow==11.1.0
|
34 |
-
platformdirs==4.3.6
|
35 |
-
pre_commit==4.1.0
|
36 |
-
pydantic==2.10.6
|
37 |
-
pydantic_core==2.27.2
|
38 |
-
pydub==0.25.1
|
39 |
-
Pygments==2.19.1
|
40 |
-
python-dateutil==2.9.0.post0
|
41 |
-
python-dotenv==1.0.1
|
42 |
-
python-multipart==0.0.20
|
43 |
-
pytz==2024.2
|
44 |
-
PyYAML==6.0.2
|
45 |
-
requests==2.32.3
|
46 |
-
rich==13.9.4
|
47 |
-
ruff==0.9.3
|
48 |
-
safehttpx==0.1.6
|
49 |
-
semantic-version==2.10.0
|
50 |
-
shellingham==1.5.4
|
51 |
-
six==1.17.0
|
52 |
-
sniffio==1.3.1
|
53 |
-
starlette==0.45.3
|
54 |
-
tenacity==9.0.0
|
55 |
-
tomlkit==0.13.2
|
56 |
-
tqdm==4.67.1
|
57 |
-
typer==0.15.1
|
58 |
-
typing_extensions==4.12.2
|
59 |
-
tzdata==2025.1
|
60 |
-
urllib3==2.3.0
|
61 |
-
uvicorn==0.34.0
|
62 |
-
watchfiles==1.0.4
|
63 |
-
websockets==14.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uv.lock
ADDED
The diff for this file is too large to render.
See raw diff
|
|