Spaces:
Sleeping
Sleeping
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() |