Spaces:
Runtime error
Runtime error
import gradio as gr | |
import os | |
import shlex | |
os.system('wget https://www.dropbox.com/s/luro5o8kjotkn70/synpretrained.pt') | |
os.system('wget https://www.dropbox.com/s/dv0ymnlqillecfw/encpretrained.pt') | |
os.system('wget https://www.dropbox.com/s/aiym2qfv7087bsc/vocpretrained.pt') | |
os.system('ls') | |
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() |