Spaces:
Runtime error
Runtime error
File size: 348 Bytes
af41cc5 8235d54 4ded62e af41cc5 8ad565a 496d57a af41cc5 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
import os
def inference(audio, text):
print(text)
print(text.strip())
os.system("python demo_cli.py --audio_path "+audio.name+" --text "+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() |