Spaces:
Running
Running
Cambio distribución bloques
Browse files
app.py
CHANGED
|
@@ -58,39 +58,40 @@ def tts(text: str, model_name: str):
|
|
| 58 |
title = """<h1 align="center">🐸💬 CoquiTTS Demo Proxecto Nós </h1>"""
|
| 59 |
|
| 60 |
with gr.Blocks(analytics_enabled=False) as demo:
|
| 61 |
-
with gr.
|
| 62 |
-
gr.
|
| 63 |
-
"""
|
| 64 |
-
## <img src="https://huggingface.co/spaces/proxectonos/README/resolve/main/title-card.png" width="100%" style="border-radius: 0.75rem;">
|
| 65 |
-
"""
|
| 66 |
-
)
|
| 67 |
-
with gr.Column():
|
| 68 |
-
with gr.Row():
|
| 69 |
gr.Markdown(
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
💻 Este space mostra algúns dos modelos TTS desenvolvidos polo **[Proxecto Nós](https://huggingface.co/proxectonos)**.
|
| 74 |
-
|
| 75 |
-
<br/>
|
| 76 |
-
"""
|
| 77 |
-
)
|
| 78 |
-
with gr.Row():
|
| 79 |
-
input_text = gr.Textbox(
|
| 80 |
-
label="Input Text",
|
| 81 |
-
value="This sentence has been generated by a speech synthesis system.",
|
| 82 |
)
|
| 83 |
-
with gr.
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
tts_button = gr.Button("Send", elem_id="send-btn", visible=True)
|
| 91 |
|
| 92 |
-
|
| 93 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
tts_button.click(
|
| 96 |
tts,
|
|
|
|
| 58 |
title = """<h1 align="center">🐸💬 CoquiTTS Demo Proxecto Nós </h1>"""
|
| 59 |
|
| 60 |
with gr.Blocks(analytics_enabled=False) as demo:
|
| 61 |
+
with gr.Row():
|
| 62 |
+
with gr.Column():
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
gr.Markdown(
|
| 64 |
+
"""
|
| 65 |
+
## <img src="https://huggingface.co/spaces/proxectonos/README/resolve/main/title-card.png" width="100%" style="border-radius: 0.75rem;">
|
| 66 |
+
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
)
|
| 68 |
+
with gr.Column():
|
| 69 |
+
with gr.Row():
|
| 70 |
+
gr.Markdown(
|
| 71 |
+
"""
|
| 72 |
+
<br/>
|
| 73 |
+
|
| 74 |
+
💻 Este space mostra algúns dos modelos TTS desenvolvidos polo **[Proxecto Nós](https://huggingface.co/proxectonos)**.
|
|
|
|
| 75 |
|
| 76 |
+
<br/>
|
| 77 |
+
"""
|
| 78 |
+
)
|
| 79 |
+
with gr.Row():
|
| 80 |
+
input_text = gr.Textbox(
|
| 81 |
+
label="Input Text",
|
| 82 |
+
value="This sentence has been generated by a speech synthesis system.",
|
| 83 |
+
)
|
| 84 |
+
with gr.Row():
|
| 85 |
+
model_select = gr.Dropdown(
|
| 86 |
+
label="Pick Model: tts_models/<language>/<dataset>/<model_name>",
|
| 87 |
+
choices=MODEL_NAMES,
|
| 88 |
+
value="tts_models/en/jenny/jenny"
|
| 89 |
+
)
|
| 90 |
+
with gr.Row():
|
| 91 |
+
tts_button = gr.Button("Send", elem_id="send-btn", visible=True)
|
| 92 |
+
|
| 93 |
+
with gr.Row():
|
| 94 |
+
output_audio = gr.Audio(label="Output", type="filepath")
|
| 95 |
|
| 96 |
tts_button.click(
|
| 97 |
tts,
|