Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
9a1d875
1
Parent(s):
a32e829
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ os.system('ls')
|
|
9 |
|
10 |
|
11 |
def inference(audio, text):
|
12 |
-
os.system("python demo_cli.py --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 --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)
|