Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -195,7 +195,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="pink", secondary_hue="rose"), t
|
|
195 |
gr.Markdown("Support the project by donating on [Ko-Fi](https://ko-fi.com/ilariaowo)")
|
196 |
|
197 |
with gr.Tab("Inference"):
|
198 |
-
with gr.
|
199 |
models_dropdown = gr.Dropdown(label="Select Model", choices=[m["model_name"] for m in MODELS], value=MODELS[0]["model_name"])
|
200 |
refresh_button = gr.Button("Refresh Models", variant="secondary")
|
201 |
refresh_button.click(lambda: gr.Dropdown(choices=[m["model_name"] for m in MODELS]), outputs=models_dropdown)
|
@@ -210,15 +210,15 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="pink", secondary_hue="rose"), t
|
|
210 |
|
211 |
with gr.Accordion("Conversion Settings", open=False):
|
212 |
pitch_algo_conf = gr.Dropdown(choices=PITCH_ALGO_OPT, value=PITCH_ALGO_OPT[4], label="Pitch Algorithm", info="Select the algorithm for pitch detection")
|
213 |
-
with gr.Row():
|
214 |
pitch_lvl_conf = gr.Slider(label="Pitch Level", minimum=-24, maximum=24, step=1, value=0, info="Adjust pitch: negative for male, positive for female")
|
215 |
index_inf_conf = gr.Slider(minimum=0, maximum=1, value=0.75, label="Index Influence", info="Controls how much accent is applied")
|
216 |
-
with gr.Row():
|
217 |
respiration_filter_conf = gr.Slider(minimum=0, maximum=7, value=3, step=1, label="Respiration Median Filtering")
|
218 |
envelope_ratio_conf = gr.Slider(minimum=0, maximum=1, value=0.25, label="Envelope Ratio")
|
219 |
consonant_protec_conf = gr.Slider(minimum=0, maximum=0.5, value=0.5, label="Consonant Breath Protection")
|
220 |
|
221 |
-
with gr.Row():
|
222 |
button_conf = gr.Button("Convert Audio", variant="primary")
|
223 |
output_conf = gr.Audio(type="filepath", label="Converted Audio")
|
224 |
button_conf.click(run, inputs=[models_dropdown, sound_gui, pitch_algo_conf, pitch_lvl_conf, index_inf_conf, respiration_filter_conf, envelope_ratio_conf, consonant_protec_conf], outputs=output_conf)
|
@@ -245,7 +245,7 @@ with gr.Blocks(theme=gr.themes.Soft(primary_hue="pink", secondary_hue="rose"), t
|
|
245 |
with gr.Tab("Vocal Separator"):
|
246 |
gr.Markdown("Separate vocals and instruments using UVR models (CPU only)")
|
247 |
uvr5_audio_file = gr.Audio(label="Input Audio", type="filepath")
|
248 |
-
with gr.Row():
|
249 |
uvr5_model = gr.Dropdown(label="UVR Model", choices=[m["model_name"] for m in UVR_5_MODELS])
|
250 |
uvr5_button = gr.Button("Separate", variant="primary")
|
251 |
uvr5_output_voc = gr.Audio(label="Vocals", type="filepath")
|
|
|
195 |
gr.Markdown("Support the project by donating on [Ko-Fi](https://ko-fi.com/ilariaowo)")
|
196 |
|
197 |
with gr.Tab("Inference"):
|
198 |
+
with gr.Row(equal_height=True):
|
199 |
models_dropdown = gr.Dropdown(label="Select Model", choices=[m["model_name"] for m in MODELS], value=MODELS[0]["model_name"])
|
200 |
refresh_button = gr.Button("Refresh Models", variant="secondary")
|
201 |
refresh_button.click(lambda: gr.Dropdown(choices=[m["model_name"] for m in MODELS]), outputs=models_dropdown)
|
|
|
210 |
|
211 |
with gr.Accordion("Conversion Settings", open=False):
|
212 |
pitch_algo_conf = gr.Dropdown(choices=PITCH_ALGO_OPT, value=PITCH_ALGO_OPT[4], label="Pitch Algorithm", info="Select the algorithm for pitch detection")
|
213 |
+
with gr.Row(equal_height=True):
|
214 |
pitch_lvl_conf = gr.Slider(label="Pitch Level", minimum=-24, maximum=24, step=1, value=0, info="Adjust pitch: negative for male, positive for female")
|
215 |
index_inf_conf = gr.Slider(minimum=0, maximum=1, value=0.75, label="Index Influence", info="Controls how much accent is applied")
|
216 |
+
with gr.Row(equal_height=True):
|
217 |
respiration_filter_conf = gr.Slider(minimum=0, maximum=7, value=3, step=1, label="Respiration Median Filtering")
|
218 |
envelope_ratio_conf = gr.Slider(minimum=0, maximum=1, value=0.25, label="Envelope Ratio")
|
219 |
consonant_protec_conf = gr.Slider(minimum=0, maximum=0.5, value=0.5, label="Consonant Breath Protection")
|
220 |
|
221 |
+
with gr.Row(equal_height=True):
|
222 |
button_conf = gr.Button("Convert Audio", variant="primary")
|
223 |
output_conf = gr.Audio(type="filepath", label="Converted Audio")
|
224 |
button_conf.click(run, inputs=[models_dropdown, sound_gui, pitch_algo_conf, pitch_lvl_conf, index_inf_conf, respiration_filter_conf, envelope_ratio_conf, consonant_protec_conf], outputs=output_conf)
|
|
|
245 |
with gr.Tab("Vocal Separator"):
|
246 |
gr.Markdown("Separate vocals and instruments using UVR models (CPU only)")
|
247 |
uvr5_audio_file = gr.Audio(label="Input Audio", type="filepath")
|
248 |
+
with gr.Row(equal_height=True):
|
249 |
uvr5_model = gr.Dropdown(label="UVR Model", choices=[m["model_name"] for m in UVR_5_MODELS])
|
250 |
uvr5_button = gr.Button("Separate", variant="primary")
|
251 |
uvr5_output_voc = gr.Audio(label="Vocals", type="filepath")
|