Spaces:
Sleeping
Sleeping
NikitaSrivatsan
commited on
Commit
•
df76cad
1
Parent(s):
a8297e3
Adding audio upload
Browse files
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,
|
|
|
|
|
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()
|