Spaces:
Sleeping
Sleeping
jhonparra18
commited on
Commit
•
8613d28
1
Parent(s):
bd0061c
Update app.py
Browse files
app.py
CHANGED
@@ -11,9 +11,10 @@ with gr.Blocks() as demo:
|
|
11 |
|
12 |
with gr.Row():
|
13 |
text_input = gr.Textbox(label="Input Text",value="Hola soy Gustavo Petro y esta es mi voz de prueba",lines=1, placeholder="Hola soy Gustavo Petro y esta es mi voz de prueba")
|
|
|
14 |
|
15 |
text_button = gr.Button("Generate")
|
16 |
|
17 |
-
text_button.click(text_to_speech, inputs=text_input, outputs=gr.Audio(label="Model Response"))
|
18 |
logger.info("prompt: ",text_button)
|
19 |
demo.launch()
|
|
|
11 |
|
12 |
with gr.Row():
|
13 |
text_input = gr.Textbox(label="Input Text",value="Hola soy Gustavo Petro y esta es mi voz de prueba",lines=1, placeholder="Hola soy Gustavo Petro y esta es mi voz de prueba")
|
14 |
+
reduce_noise=gr.Checkbox(label="Reduce Noise", info="Use Noise Reduce after model generation?")
|
15 |
|
16 |
text_button = gr.Button("Generate")
|
17 |
|
18 |
+
text_button.click(text_to_speech, inputs=[text_input,reduce_noise], outputs=gr.Audio(label="Model Response"))
|
19 |
logger.info("prompt: ",text_button)
|
20 |
demo.launch()
|