Ahsen Khaliq commited on
Commit
af41cc5
1 Parent(s): 3dc52d1

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ import os
3
+
4
+ def inference(audio, text):
5
+ os.system('python demo_cli.py -audio '+audio.name+' --text '+text)
6
+ return 'demo_output_1.wav'
7
+
8
+ iface = gr.Interface(inference, inputs=["audio","text"], outputs="audio")
9
+ iface.launch()