Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ import gradio as gr
|
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name + "!!"
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
|
| 9 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 10 |
iface.launch()
|
|
|
|
| 3 |
def greet(name):
|
| 4 |
return "Hello " + name + "!!"
|
| 5 |
|
| 6 |
+
foo_bar_btn = gr.Button("Foo bar.")
|
| 7 |
+
foo_bar_btn.click(None, [], subject, _js=responsiveVoice.speak("ciao"))
|
| 8 |
|
| 9 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 10 |
iface.launch()
|