Update app.py
Browse files
app.py
CHANGED
@@ -200,14 +200,14 @@ if __name__ == '__main__':
|
|
200 |
interactive=True,
|
201 |
)
|
202 |
tts_mode = gr.Checkbox(label="Texto a Voz (usa edge-tts como entrada)", value=False)
|
203 |
-
tts_text = gr.Textbox(visible=
|
204 |
-
tts_voice = gr.Dropdown(label="Hablante Edge-tts", choices=voices, visible=
|
205 |
vc_submit = gr.Button("Generar", variant="primary")
|
206 |
with gr.Column():
|
207 |
vc_output1 = gr.Textbox(label="Mensaje de salida")
|
208 |
vc_output2 = gr.Audio(label="Audio de salida")
|
209 |
vc_submit.click(vc_fn, [vc_input, vc_transpose, vc_f0method, vc_index_ratio, tts_mode, tts_text, tts_voice], [vc_output1, vc_output2],api_name="generar")
|
210 |
-
tts_mode.change(change_to_tts_mode, [tts_mode], [vc_input, tts_text, tts_voice])
|
211 |
gr.Markdown('# <center>Changelog 2023.05.15')
|
212 |
gr.Markdown('- Added support for direct upload to gradio')
|
213 |
gr.Markdown('- Added Gura')
|
|
|
200 |
interactive=True,
|
201 |
)
|
202 |
tts_mode = gr.Checkbox(label="Texto a Voz (usa edge-tts como entrada)", value=False)
|
203 |
+
tts_text = gr.Textbox(visible=True,label="Texto (100 palabras limite)" if limitation else "Texto TTS")
|
204 |
+
tts_voice = gr.Dropdown(label="Hablante Edge-tts", choices=voices, visible=True, allow_custom_value=False, value="en-US-AnaNeural-Female")
|
205 |
vc_submit = gr.Button("Generar", variant="primary")
|
206 |
with gr.Column():
|
207 |
vc_output1 = gr.Textbox(label="Mensaje de salida")
|
208 |
vc_output2 = gr.Audio(label="Audio de salida")
|
209 |
vc_submit.click(vc_fn, [vc_input, vc_transpose, vc_f0method, vc_index_ratio, tts_mode, tts_text, tts_voice], [vc_output1, vc_output2],api_name="generar")
|
210 |
+
#tts_mode.change(change_to_tts_mode, [tts_mode], [vc_input, tts_text, tts_voice])
|
211 |
gr.Markdown('# <center>Changelog 2023.05.15')
|
212 |
gr.Markdown('- Added support for direct upload to gradio')
|
213 |
gr.Markdown('- Added Gura')
|