import gradio as gr import os def inference(audio, text): os.system('python demo_cli.py -audio '+audio.name+' --text '+text) return 'demo_output_1.wav' iface = gr.Interface(inference, inputs=["audio","text"], outputs="audio") iface.launch()