Spaces:
Running
Running
Hide v2 of model
Browse files
app.py
CHANGED
@@ -117,11 +117,11 @@ def create_tab(tab_name):
|
|
117 |
def tts_comparison(text, speaker_id):
|
118 |
result1 = tts(text, speaker_id, "Graphemes")
|
119 |
result2 = tts(text, speaker_id, "Graphemes_finetuned")
|
120 |
-
result3 = tts(text, speaker_id, "Graphemes_v2")
|
121 |
-
result4 = tts(text, speaker_id, "Graphemes_finetuned_v2")
|
122 |
result5 = tts(text, speaker_id, "Graphemes_v3")
|
123 |
result6 = tts(text, speaker_id, "Graphemes_finetuned_v3")
|
124 |
-
return result1[1], result2[1],
|
125 |
|
126 |
def create_comparison_tab():
|
127 |
with gr.TabItem("Compare Models"):
|
@@ -131,11 +131,11 @@ def create_comparison_tab():
|
|
131 |
tts_submit = gr.Button("Generate", variant="primary")
|
132 |
tts_output1 = gr.Audio(label="Graphemes")
|
133 |
tts_output2 = gr.Audio(label="Graphemes French Data")
|
134 |
-
tts_output3 = gr.Audio(label="Graphemes v2")
|
135 |
-
tts_output4 = gr.Audio(label="Graphemes v2 French Data")
|
136 |
tts_output5 = gr.Audio(label="Graphemes v3")
|
137 |
tts_output6 = gr.Audio(label="Graphemes v3 French Data")
|
138 |
-
tts_submit.click(lambda text, speaker_id: tts_comparison(text, speaker_id), [tts_input, tts_speaker], [tts_output1, tts_output2,
|
139 |
|
140 |
hps = utils.get_hparams_from_file("configs/vctk_base.json")
|
141 |
|
@@ -159,8 +159,8 @@ with app:
|
|
159 |
with gr.Tabs():
|
160 |
create_tab("Graphemes")
|
161 |
create_tab("Graphemes_finetuned")
|
162 |
-
create_tab("Graphemes_v2")
|
163 |
-
create_tab("Graphemes_finetuned_v2")
|
164 |
create_tab("Graphemes_v3")
|
165 |
create_tab("Graphemes_finetuned_v3")
|
166 |
create_comparison_tab()
|
|
|
117 |
def tts_comparison(text, speaker_id):
|
118 |
result1 = tts(text, speaker_id, "Graphemes")
|
119 |
result2 = tts(text, speaker_id, "Graphemes_finetuned")
|
120 |
+
#result3 = tts(text, speaker_id, "Graphemes_v2")
|
121 |
+
#result4 = tts(text, speaker_id, "Graphemes_finetuned_v2")
|
122 |
result5 = tts(text, speaker_id, "Graphemes_v3")
|
123 |
result6 = tts(text, speaker_id, "Graphemes_finetuned_v3")
|
124 |
+
return result1[1], result2[1], result5[1], result6[1] #result3[1], result4[1],
|
125 |
|
126 |
def create_comparison_tab():
|
127 |
with gr.TabItem("Compare Models"):
|
|
|
131 |
tts_submit = gr.Button("Generate", variant="primary")
|
132 |
tts_output1 = gr.Audio(label="Graphemes")
|
133 |
tts_output2 = gr.Audio(label="Graphemes French Data")
|
134 |
+
#tts_output3 = gr.Audio(label="Graphemes v2")
|
135 |
+
#tts_output4 = gr.Audio(label="Graphemes v2 French Data")
|
136 |
tts_output5 = gr.Audio(label="Graphemes v3")
|
137 |
tts_output6 = gr.Audio(label="Graphemes v3 French Data")
|
138 |
+
tts_submit.click(lambda text, speaker_id: tts_comparison(text, speaker_id), [tts_input, tts_speaker], [tts_output1, tts_output2,tts_output5, tts_output6]) #tts_output3, tts_output4
|
139 |
|
140 |
hps = utils.get_hparams_from_file("configs/vctk_base.json")
|
141 |
|
|
|
159 |
with gr.Tabs():
|
160 |
create_tab("Graphemes")
|
161 |
create_tab("Graphemes_finetuned")
|
162 |
+
#create_tab("Graphemes_v2")
|
163 |
+
#create_tab("Graphemes_finetuned_v2")
|
164 |
create_tab("Graphemes_v3")
|
165 |
create_tab("Graphemes_finetuned_v3")
|
166 |
create_comparison_tab()
|