Ahsen Khaliq
Update app.py
1e04ba6
raw
history blame
334 Bytes
import gradio as gr
import os
import shlex
def inference(audio, text):
os.system("python demo_cli.py --audio_path "+audio.name+" --text "+shlex.quote(text.strip()))
return 'demo_output_1.wav'
iface = gr.Interface(inference, inputs=[gr.inputs.Audio(type="file"),"text"], outputs=gr.outputs.Audio(type="file"))
iface.launch()