amarchheda commited on
Commit
a9bf14f
·
1 Parent(s): 9505cca
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -1,7 +1,12 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
 
 
 
 
 
7
  iface.launch()
 
1
  import gradio as gr
2
 
3
+ def greet(audio):
4
+ return audio
5
 
6
+ iface = gr.Interface(fn=greet,
7
+ inputs=gr.inputs.Audio(source="microphone", type="filepath"),
8
+ outputs="audio",
9
+ layout="horizontal",
10
+ theme="huggingface"
11
+ )
12
  iface.launch()