Spaces:
Runtime error
Runtime error
File size: 1,217 Bytes
3a010aa 645c216 38548f2 0ae5ec9 645c216 38548f2 3a010aa 38548f2 3a010aa 38548f2 3a010aa ea3ebc0 38548f2 ea3ebc0 38548f2 0ae5ec9 38548f2 645c216 38548f2 d07b6f4 ea3ebc0 38548f2 645c216 3a010aa 38548f2 d07b6f4 38548f2 3a010aa 645c216 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
from prelude import prelude
prelude()
import gradio as gr
from app.setup import SetupTab
from app.extract import FeatureExtractionTab
from app.train import TrainTab
from app.export import ExportTab
from app.infer import InferenceTab
with gr.Blocks() as app:
gr.Markdown("# ZeroRVC")
gr.Markdown(
"Run Retrieval-based Voice Conversion training and inference on HuggingFace ZeroGPU."
)
exp_dir = gr.Textbox(
label="Experiment directory",
visible=True,
interactive=False,
)
setup = SetupTab()
feature_extraction = FeatureExtractionTab()
training = TrainTab()
export = ExportTab()
inferencing = InferenceTab()
with gr.Tabs():
with gr.Tab(label="Setup"):
setup.ui()
with gr.Tab(label="Feature Extraction"):
feature_extraction.ui()
with gr.Tab(label="Training"):
training.ui()
with gr.Tab(label="Download"):
export.ui()
with gr.Tab(label="Inference"):
inferencing.ui()
setup.build(exp_dir)
feature_extraction.build(exp_dir)
training.build(exp_dir)
export.build(exp_dir)
inferencing.build(exp_dir)
app.launch()
|