Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -49,15 +49,16 @@ CSS = """
|
|
49 |
"""
|
50 |
|
51 |
with gr.Blocks(theme="Hev832/Applio", fill_width=True, css=CSS) as demo:
|
|
|
52 |
with gr.Tab("Inferenece"):
|
53 |
gr.Markdown("in progress")
|
54 |
model_name = gr.Textbox(label="Model Name #", lines=1, value="")
|
55 |
input_audio = gr.Audio(label="Input Audio #", type="filepath")
|
56 |
with gr.Accordion("Settings", open=False):
|
57 |
-
f0_change = gr.Slider(label="f0 change #", minimum
|
58 |
-
f0_method = gr.Dropdown(label="f0 method #", choices=["rmvpe+"], value="rmvpe+")
|
59 |
-
min_pitch = gr.Textbox(label="min pitch #", lines=1, value="
|
60 |
-
max_pitch = gr.Textbox(label="max pitch #", lines=1, value="
|
61 |
crepe_hop_length = gr.Slider(label="crepe_hop_length #", minimum=0, maximum=256, step=1, value=128)
|
62 |
index_rate = gr.Slider(label="index_rate #", minimum=0, maximum=1.0, step=0.01, value=0.75)
|
63 |
filter_radius = gr.Slider(label="filter_radius #", minimum=0, maximum=10.0, step=0.01, value=3)
|
@@ -73,12 +74,12 @@ with gr.Blocks(theme="Hev832/Applio", fill_width=True, css=CSS) as demo:
|
|
73 |
quefrency = gr.Slider(label="quefrency #", minimum=0, maximum=100, step=1, value=0)
|
74 |
timbre = gr.Slider(label="timbre #", minimum=0, maximum=100, step=1, value=1)
|
75 |
f0_autotune = gr.Checkbox(label="f0_autotune #", value=False)
|
76 |
-
audio_format = gr.Dropdown(label="audio_format #", choices=["wav"], value="wav")
|
77 |
resample_sr = gr.Slider(label="resample_sr #", minimum=0, maximum=100, step=1, value=0)
|
78 |
-
hubert_model_path = gr.Textbox(label="hubert_model_pathe #", lines=1, value="hubert_base.pt")
|
79 |
-
rmvpe_model_path = gr.Textbox(label="rmvpe_model_path #", lines=1, value="rmvpe.pt")
|
80 |
-
fcpe_model_path = gr.Textbox(label="fcpe_model_path #", lines=1, value="fcpe.pt")
|
81 |
-
|
82 |
result_audio = gr.Audio("Output Audio #", type="filepath")
|
83 |
|
84 |
with gr.Tab("Download Model"):
|
|
|
49 |
"""
|
50 |
|
51 |
with gr.Blocks(theme="Hev832/Applio", fill_width=True, css=CSS) as demo:
|
52 |
+
gr.Markdown("# RVC INFER DEMOS ")
|
53 |
with gr.Tab("Inferenece"):
|
54 |
gr.Markdown("in progress")
|
55 |
model_name = gr.Textbox(label="Model Name #", lines=1, value="")
|
56 |
input_audio = gr.Audio(label="Input Audio #", type="filepath")
|
57 |
with gr.Accordion("Settings", open=False):
|
58 |
+
f0_change = gr.Slider(label="f0 change #", minimum=-12, maximum=12, step=1, value=0)
|
59 |
+
f0_method = gr.Dropdown(label="f0 method #", choices=["rmvpe+", "rmvpe", "fcpe", " hybrid[rmvpe+fcpe]"], value="rmvpe+")
|
60 |
+
min_pitch = gr.Textbox(label="min pitch #", lines=1, value="-12")
|
61 |
+
max_pitch = gr.Textbox(label="max pitch #", lines=1, value="12")
|
62 |
crepe_hop_length = gr.Slider(label="crepe_hop_length #", minimum=0, maximum=256, step=1, value=128)
|
63 |
index_rate = gr.Slider(label="index_rate #", minimum=0, maximum=1.0, step=0.01, value=0.75)
|
64 |
filter_radius = gr.Slider(label="filter_radius #", minimum=0, maximum=10.0, step=0.01, value=3)
|
|
|
74 |
quefrency = gr.Slider(label="quefrency #", minimum=0, maximum=100, step=1, value=0)
|
75 |
timbre = gr.Slider(label="timbre #", minimum=0, maximum=100, step=1, value=1)
|
76 |
f0_autotune = gr.Checkbox(label="f0_autotune #", value=False)
|
77 |
+
audio_format = gr.Dropdown(label="audio_format #", choices=["wav"], value="wav", visible=False)
|
78 |
resample_sr = gr.Slider(label="resample_sr #", minimum=0, maximum=100, step=1, value=0)
|
79 |
+
hubert_model_path = gr.Textbox(label="hubert_model_pathe #", lines=1, value="hubert_base.pt", visible=False)
|
80 |
+
rmvpe_model_path = gr.Textbox(label="rmvpe_model_path #", lines=1, value="rmvpe.pt", visible=False)
|
81 |
+
fcpe_model_path = gr.Textbox(label="fcpe_model_path #", lines=1, value="fcpe.pt", visible=False)
|
82 |
+
submit_inference = gr.Button('Inference #', variant='primary')
|
83 |
result_audio = gr.Audio("Output Audio #", type="filepath")
|
84 |
|
85 |
with gr.Tab("Download Model"):
|