NikitaSrivatsan commited on
Commit
df76cad
1 Parent(s): a8297e3

Adding audio upload

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -3,5 +3,7 @@ import gradio as gr
3
  def greet(name):
4
  return f'Hello {name}!!'
5
 
6
- demo = gr.Interface(fn=greet, inputs='text', outputs='text')
 
 
7
  demo.launch()
 
3
  def greet(name):
4
  return f'Hello {name}!!'
5
 
6
+ demo = gr.Interface(fn=greet,
7
+ inputs=gr.Audio(sources='upload'),
8
+ outputs='text')
9
  demo.launch()