Spaces:
Sleeping
Sleeping
Update interface and add explanations
Browse files
app.py
CHANGED
@@ -65,7 +65,8 @@ def tts(text, speaker_id, tab_name):
|
|
65 |
|
66 |
def create_tab(tab_name):
|
67 |
with gr.TabItem(tab_name):
|
68 |
-
|
|
|
69 |
tts_input2 = gr.Dropdown(label="Speaker", choices=["Male", "Female"], type="index", value="Male")
|
70 |
tts_submit = gr.Button("Generate", variant="primary")
|
71 |
tts_output1 = gr.Textbox(label="Message")
|
@@ -74,12 +75,26 @@ def create_tab(tab_name):
|
|
74 |
|
75 |
app = gr.Blocks()
|
76 |
with app:
|
|
|
|
|
|
|
|
|
|
|
|
|
77 |
with gr.Tabs():
|
78 |
create_tab("Phonemes_finetuned")
|
79 |
create_tab("Graphemes_finetuned")
|
80 |
create_tab("Phonemes")
|
81 |
create_tab("Graphemes")
|
82 |
|
83 |
-
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
|
|
|
|
65 |
|
66 |
def create_tab(tab_name):
|
67 |
with gr.TabItem(tab_name):
|
68 |
+
gr.Markdown(f"### {tab_name} TTS Model")
|
69 |
+
tts_input1 = gr.TextArea(label="Text in Walloon (Depending on the model the input should be on phonemes or characters)", value="")
|
70 |
tts_input2 = gr.Dropdown(label="Speaker", choices=["Male", "Female"], type="index", value="Male")
|
71 |
tts_submit = gr.Button("Generate", variant="primary")
|
72 |
tts_output1 = gr.Textbox(label="Message")
|
|
|
75 |
|
76 |
app = gr.Blocks()
|
77 |
with app:
|
78 |
+
gr.Markdown(
|
79 |
+
"""
|
80 |
+
# GB PT Multilingual Text-to-Speech (TTS)
|
81 |
+
Multilingual Text-to-Speech (TTS) synthesizer supporting English and Portuguese. Based on [YourTTS](https://github.com/Edresson/YourTTS), thanks to ![Coqui.ai](https://coqui.ai/).
|
82 |
+
"""
|
83 |
+
)
|
84 |
with gr.Tabs():
|
85 |
create_tab("Phonemes_finetuned")
|
86 |
create_tab("Graphemes_finetuned")
|
87 |
create_tab("Phonemes")
|
88 |
create_tab("Graphemes")
|
89 |
|
90 |
+
gr.Markdown(
|
91 |
+
"""
|
92 |
+
### Examples
|
93 |
+
| Input Text | Speaker | Language |
|
94 |
+
|------------|---------|----------|
|
95 |
+
| The North Wind and the Sun were disputing which was the stronger, when a traveler came along wrapped in a warm cloak. | Linda | English |
|
96 |
+
| O vento norte e o Sol discutiam quem era o mais forte, quando surgiu um viajante envolvido numa capa. | Ed | Português |
|
97 |
+
"""
|
98 |
+
)
|
99 |
|
100 |
+
app.launch()
|