Ahsen Khaliq commited on
Commit
46b8fc3
1 Parent(s): 9a1d875

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ os.system('ls')
9
 
10
 
11
  def inference(audio, text):
12
- os.system("python demo_cli.py --cpu --audio_path "+audio.name+" --text "+shlex.quote(text.strip()))
13
  return 'demo_output_1.wav'
14
 
15
  iface = gr.Interface(inference, inputs=[gr.inputs.Audio(type="file"),"text"], outputs=gr.outputs.Audio(type="file"),enable_queue=True)
 
9
 
10
 
11
  def inference(audio, text):
12
+ os.system("python demo_cli.py --no_sound --cpu --audio_path "+audio.name+" --text "+shlex.quote(text.strip()))
13
  return 'demo_output_1.wav'
14
 
15
  iface = gr.Interface(inference, inputs=[gr.inputs.Audio(type="file"),"text"], outputs=gr.outputs.Audio(type="file"),enable_queue=True)