Spaces:
Sleeping
Sleeping
File size: 473 Bytes
53b42ec |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import gradio as gr
from inference import text_to_speech
def greet(text=""):
return "this is a f test"
with gr.Blocks() as demo:
gr.Markdown("Text-to-Speech Gustavo Petro")
with gr.Row():
text_input = gr.Textbox(lines=2, placeholder="Hola soy Gustavo Petro y esta es mi voz de prueba")
text_button = gr.Button("Generate")
text_button.click(text_to_speech, inputs=text_input, outputs=gr.Audio(label="Model Response"))
demo.launch() |