Ahsen Khaliq commited on
Commit
8ad565a
1 Parent(s): af41cc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,5 +5,6 @@ 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()
 
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=[gr.inputs.Audio(type="file"),"text"], outputs=gr.outputs.Audio(type="file"))
9
+ )
10
  iface.launch()