Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,13 +16,13 @@ from typing import Tuple, Dict, Any, Optional
|
|
| 16 |
from taproot import Task
|
| 17 |
|
| 18 |
# Configuration
|
| 19 |
-
is_hf_spaces =
|
| 20 |
-
max_characters =
|
| 21 |
header_markdown = """
|
| 22 |
# Zonos v0.1
|
| 23 |
State of the art text-to-speech model [[model]](https://huggingface.co/collections/Zyphra/zonos-v01-67ac661c85e1898670823b4f). [[blog]](https://www.zyphra.com/post/beta-release-of-zonos-v0-1), [[Zyphra Audio (hosted service)]](https://maia.zyphra.com/sign-in?redirect_url=https%3A%2F%2Fmaia.zyphra.com%2Faudio)
|
| 24 |
## Unleashed
|
| 25 |
-
Use this space to generate long-form speech up to around ~
|
| 26 |
### Tips
|
| 27 |
- If you are generating more than one chunk of audio, you should supply speaker conditioning. Otherwise, each chunk will have a slightly different voice.
|
| 28 |
- When providing prefix audio, include the text of the prefix audio in your speech text to ensure a smooth transition.
|
|
|
|
| 16 |
from taproot import Task
|
| 17 |
|
| 18 |
# Configuration
|
| 19 |
+
is_hf_spaces = os.getenv("SYSTEM", "") == "spaces"
|
| 20 |
+
max_characters = 2000
|
| 21 |
header_markdown = """
|
| 22 |
# Zonos v0.1
|
| 23 |
State of the art text-to-speech model [[model]](https://huggingface.co/collections/Zyphra/zonos-v01-67ac661c85e1898670823b4f). [[blog]](https://www.zyphra.com/post/beta-release-of-zonos-v0-1), [[Zyphra Audio (hosted service)]](https://maia.zyphra.com/sign-in?redirect_url=https%3A%2F%2Fmaia.zyphra.com%2Faudio)
|
| 24 |
## Unleashed
|
| 25 |
+
Use this space to generate long-form speech up to around ~2 minutes in length. To generate an unlimited length, clone this space and run it locally.
|
| 26 |
### Tips
|
| 27 |
- If you are generating more than one chunk of audio, you should supply speaker conditioning. Otherwise, each chunk will have a slightly different voice.
|
| 28 |
- When providing prefix audio, include the text of the prefix audio in your speech text to ensure a smooth transition.
|