Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
4ded62e
1
Parent(s):
d31258c
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(
|
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"))
|