Spaces:
Running
Running
Download modules/api/impl/model/chattts_model.py from ProbablyBlue/ChatTTS-Forge: direct link, hf CLI and curl.
- Browser
- Download file 380 Bytes
-
https://huggingface.co/spaces/ProbablyBlue/ChatTTS-Forge/resolve/main/modules/api/impl/model/chattts_model.py
- Command line
-
hf download hf://spaces/ProbablyBlue/ChatTTS-Forge/modules/api/impl/model/chattts_model.py
-
curl -L -o chattts_model.py https://huggingface.co/spaces/ProbablyBlue/ChatTTS-Forge/resolve/main/modules/api/impl/model/chattts_model.py
380 Bytes
| from pydantic import BaseModel | |
| class ChatTTSConfig(BaseModel): | |
| style: str = "" | |
| temperature: float = 0.3 | |
| top_p: float = 0.7 | |
| top_k: int = 20 | |
| prompt1: str = "" | |
| prompt2: str = "" | |
| prefix: str = "" | |
| class InferConfig(BaseModel): | |
| batch_size: int = 4 | |
| spliter_threshold: int = 100 | |
| # end_of_sentence | |
| eos: str = "[uv_break]" | |
| seed: int = 42 | |