Spaces:
Runtime error
Runtime error
File size: 575 Bytes
af41cc5 1e04ba6 af41cc5 36e65f0 9898d4b af41cc5 1e04ba6 af41cc5 8ad565a 496d57a af41cc5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
import os
import shlex
os.system('chmod 777 encoder')
os.system('chmod 777 synthesizer')
os.system('chmod 777 vocoder')
os.system('wget https://github.com/blue-fish/Real-Time-Voice-Cloning/releases/download/v1.0/pretrained.zip')
os.system('unzip pretrained.zip')
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() |