micrem73 commited on
Commit
9b85120
1 Parent(s): dd49491

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
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()