Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
d31258c
1
Parent(s):
8235d54
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import os
|
|
4 |
def inference(audio, text):
|
5 |
print(text)
|
6 |
print(text.strip())
|
7 |
-
os.system('python demo_cli.py
|
8 |
return 'demo_output_1.wav'
|
9 |
|
10 |
iface = gr.Interface(inference, inputs=[gr.inputs.Audio(type="file"),"text"], outputs=gr.outputs.Audio(type="file"))
|
|
|
4 |
def inference(audio, text):
|
5 |
print(text)
|
6 |
print(text.strip())
|
7 |
+
os.system('python demo_cli.py --audio_path '+audio.name+' --text '+text.strip())
|
8 |
return 'demo_output_1.wav'
|
9 |
|
10 |
iface = gr.Interface(inference, inputs=[gr.inputs.Audio(type="file"),"text"], outputs=gr.outputs.Audio(type="file"))
|