testspeech / app.py
micrem73's picture
Update app.py
fd19962
raw
history blame
259 Bytes
import gradio as gr
def greet(name):
return "Hello " + name + "!!"
foo_bar_btn = gr.Button("Foo bar.")
foo_bar_btn.click(None, [], subject, _js=responsiveVoice.speak("ciao"))
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()