Spaces:
Runtime error
Runtime error
import gradio as gr | |
from vits.vits_inferencer import VitsInferencer | |
from sovits.sovits_inferencer import SovitsInferencer | |
app = gr.Blocks() | |
with app: | |
with open("header.html", "r") as f: | |
gr.HTML(f.read()) | |
with gr.Tabs(): | |
with gr.TabItem("语音合成"): | |
vits_inferencer = VitsInferencer("vits/configs/hoshimi_base.json") | |
vits_inferencer.render() | |
with gr.TabItem("声线转换"): | |
sovits_inferencer = SovitsInferencer("sovits/configs/hoshimi_base.json") | |
sovits_inferencer.render() | |
app.launch() |