import gradio as gr from xtts import predict, get_tts import os, stat st = os.stat("ffmpeg") os.chmod("ffmpeg", st.st_mode | stat.S_IEXEC) get_tts(None) demo=gr.Interface(predict, inputs=["text","text","text"], outputs=gr.Audio()) demo.queue() demo.launch(show_api=True)