Spaces:
Running
Running
Update src/covergen.py
Browse files- src/covergen.py +6 -3
src/covergen.py
CHANGED
@@ -41,14 +41,17 @@ with gr.Blocks(title="π€ RVC Inference", css="footer{display:none !important}"
|
|
41 |
|
42 |
with gr.Column():
|
43 |
audio_input = gr.Audio(label='π΅ Upload Audio', interactive=True)
|
44 |
-
|
45 |
-
|
46 |
with gr.Accordion('βοΈ Voice Conversion Settings', open=False):
|
47 |
use_hybrid_methods = gr.Checkbox(label="𧬠Use Hybrid Methods", value=False)
|
48 |
f0_method = gr.Dropdown(['rmvpe+', 'fcpe', 'rmvpe', 'mangio-crepe', 'crepe'], value='rmvpe+', label='π§ F0 Method')
|
49 |
use_hybrid_methods.change(update_f0_method, inputs=use_hybrid_methods, outputs=f0_method)
|
50 |
crepe_hop_length = gr.Slider(8, 512, value=128, step=8, label='ποΈ Crepe Hop Length')
|
51 |
f0_method.change(show_hop_slider, inputs=f0_method, outputs=crepe_hop_length)
|
|
|
|
|
|
|
|
|
52 |
|
53 |
refresh_btn.click(update_models_list, None, outputs=rvc_model)
|
54 |
generate_btn.click(song_cover_pipeline, inputs=[audio_input, rvc_model, pitch, f0_method, crepe_hop_length, output_format], outputs=[converted_audio])
|
@@ -61,7 +64,7 @@ with gr.Blocks(title="π€ RVC Inference", css="footer{display:none !important}"
|
|
61 |
|
62 |
with gr.Row():
|
63 |
process_btn = gr.Button("π¬ Process")
|
64 |
-
|
65 |
|
66 |
process_btn.click(add_audio_effects, inputs=[vocal_input, instrumental_input], outputs=[ai_cover_output])
|
67 |
|
|
|
41 |
|
42 |
with gr.Column():
|
43 |
audio_input = gr.Audio(label='π΅ Upload Audio', interactive=True)
|
44 |
+
|
|
|
45 |
with gr.Accordion('βοΈ Voice Conversion Settings', open=False):
|
46 |
use_hybrid_methods = gr.Checkbox(label="𧬠Use Hybrid Methods", value=False)
|
47 |
f0_method = gr.Dropdown(['rmvpe+', 'fcpe', 'rmvpe', 'mangio-crepe', 'crepe'], value='rmvpe+', label='π§ F0 Method')
|
48 |
use_hybrid_methods.change(update_f0_method, inputs=use_hybrid_methods, outputs=f0_method)
|
49 |
crepe_hop_length = gr.Slider(8, 512, value=128, step=8, label='ποΈ Crepe Hop Length')
|
50 |
f0_method.change(show_hop_slider, inputs=f0_method, outputs=crepe_hop_length)
|
51 |
+
|
52 |
+
converted_audio = gr.Audio(label='πΆ Converted Voice')
|
53 |
+
|
54 |
+
|
55 |
|
56 |
refresh_btn.click(update_models_list, None, outputs=rvc_model)
|
57 |
generate_btn.click(song_cover_pipeline, inputs=[audio_input, rvc_model, pitch, f0_method, crepe_hop_length, output_format], outputs=[converted_audio])
|
|
|
64 |
|
65 |
with gr.Row():
|
66 |
process_btn = gr.Button("π¬ Process")
|
67 |
+
ai_cover_output = gr.Audio(label='π§ AI Cover')
|
68 |
|
69 |
process_btn.click(add_audio_effects, inputs=[vocal_input, instrumental_input], outputs=[ai_cover_output])
|
70 |
|