ai-tomoni commited on
Commit
2a30524
·
verified ·
1 Parent(s): c3137b0

Create app-gradio.py

Browse files
Files changed (1) hide show
  1. app-gradio.py +13 -0
app-gradio.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def echo(audio_path):
4
+ return "You uploaded: " + audio_path
5
+
6
+ demo = gr.Interface(
7
+ fn=echo,
8
+ inputs=gr.Audio(type="filepath", label="Upload Audio"),
9
+ outputs=gr.Textbox(label="Output"),
10
+ )
11
+
12
+ if __name__ == "__main__":
13
+ demo.launch()