Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,6 @@ VieNeu-TTS v3 Turbo — Hugging Face ZeroGPU Space
|
|
| 3 |
================================================
|
| 4 |
Vietnamese text-to-speech, 48 kHz, with built-in voices + instant voice cloning
|
| 5 |
+ a multi-speaker conversation tab. Shows generation speed / RTF per request.
|
| 6 |
-
|
| 7 |
ZeroGPU notes:
|
| 8 |
* The model is placed on ``cuda`` at module import (ZeroGPU runs a CUDA
|
| 9 |
emulation outside ``@spaces.GPU`` so this is the recommended, fastest path).
|
|
@@ -132,7 +131,6 @@ _LINE_RE = re.compile(r"^\s*([^::]+)[::]\s*(.*)$")
|
|
| 132 |
|
| 133 |
def _parse_dialogue(script):
|
| 134 |
"""Parse ``Speaker: line`` rows into ``[(voice_id, text), ...]``.
|
| 135 |
-
|
| 136 |
The speaker label must match a built-in voice name; unknown / missing labels
|
| 137 |
fall back to the default voice.
|
| 138 |
"""
|
|
@@ -185,6 +183,13 @@ HEADER = """
|
|
| 185 |
<div style="font-size:2.1rem;font-weight:800;">🦜 VieNeu-TTS <span
|
| 186 |
style="background:-webkit-linear-gradient(45deg,#60A5FA,#22D3EE);
|
| 187 |
-webkit-background-clip:text;-webkit-text-fill-color:transparent;">v3 Turbo</span></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
<div style="opacity:.85;margin-top:6px;">
|
| 189 |
Text-to-Speech tiếng Việt · 48 kHz · giọng dựng sẵn + nhân bản giọng + hội thoại
|
| 190 |
</div>
|
|
@@ -298,3 +303,4 @@ with gr.Blocks(theme=theme, title="VieNeu-TTS v3 Turbo") as demo:
|
|
| 298 |
|
| 299 |
if __name__ == "__main__":
|
| 300 |
demo.queue().launch()
|
|
|
|
|
|
| 3 |
================================================
|
| 4 |
Vietnamese text-to-speech, 48 kHz, with built-in voices + instant voice cloning
|
| 5 |
+ a multi-speaker conversation tab. Shows generation speed / RTF per request.
|
|
|
|
| 6 |
ZeroGPU notes:
|
| 7 |
* The model is placed on ``cuda`` at module import (ZeroGPU runs a CUDA
|
| 8 |
emulation outside ``@spaces.GPU`` so this is the recommended, fastest path).
|
|
|
|
| 131 |
|
| 132 |
def _parse_dialogue(script):
|
| 133 |
"""Parse ``Speaker: line`` rows into ``[(voice_id, text), ...]``.
|
|
|
|
| 134 |
The speaker label must match a built-in voice name; unknown / missing labels
|
| 135 |
fall back to the default voice.
|
| 136 |
"""
|
|
|
|
| 183 |
<div style="font-size:2.1rem;font-weight:800;">🦜 VieNeu-TTS <span
|
| 184 |
style="background:-webkit-linear-gradient(45deg,#60A5FA,#22D3EE);
|
| 185 |
-webkit-background-clip:text;-webkit-text-fill-color:transparent;">v3 Turbo</span></div>
|
| 186 |
+
<div style="margin-top:8px;font-size:0.95rem;">
|
| 187 |
+
<a href="https://huggingface.co/pnnbao-ump/VieNeu-TTS-v3-Turbo" target="_blank"
|
| 188 |
+
style="color:#60A5FA;text-decoration:none;font-weight:600;">🤗 Model card</a>
|
| 189 |
+
·
|
| 190 |
+
<a href="https://github.com/pnnbao97/VieNeu-TTS" target="_blank"
|
| 191 |
+
style="color:#60A5FA;text-decoration:none;font-weight:600;">💻 GitHub repo</a>
|
| 192 |
+
</div>
|
| 193 |
<div style="opacity:.85;margin-top:6px;">
|
| 194 |
Text-to-Speech tiếng Việt · 48 kHz · giọng dựng sẵn + nhân bản giọng + hội thoại
|
| 195 |
</div>
|
|
|
|
| 303 |
|
| 304 |
if __name__ == "__main__":
|
| 305 |
demo.queue().launch()
|
| 306 |
+
|