Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
c3dff88
1
Parent(s):
353f16b
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
import os
|
3 |
|
4 |
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=[gr.inputs.Audio(type="file"),"text"], outputs=gr.outputs.Audio(type="file"))
|
|
|
2 |
import os
|
3 |
|
4 |
def inference(audio, text):
|
5 |
+
os.system('python demo_cli.py -audio '+audio.name+' --text '+text.strip())
|
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"))
|