Spaces:
Sleeping
Sleeping
Commit
Β·
fe90bca
1
Parent(s):
a7ab32b
π: stage change
Browse files
app.py
CHANGED
@@ -600,69 +600,18 @@ def get_gui(theme):
|
|
600 |
aud = audio_conf()
|
601 |
# gr.HTML("<hr>")
|
602 |
|
603 |
-
gr.Examples(
|
604 |
-
examples=[
|
605 |
-
[
|
606 |
-
["./mnr.mp3"],
|
607 |
-
"./emu_v2.pth",
|
608 |
-
"rmvpe+",
|
609 |
-
0,
|
610 |
-
"./emu_v2.index",
|
611 |
-
0.75,
|
612 |
-
3,
|
613 |
-
0.25,
|
614 |
-
0.50,
|
615 |
-
],
|
616 |
-
],
|
617 |
-
fn=run,
|
618 |
-
inputs=[
|
619 |
-
aud,
|
620 |
-
model,
|
621 |
-
algo,
|
622 |
-
algo_lvl,
|
623 |
-
indx,
|
624 |
-
indx_inf,
|
625 |
-
res_fc,
|
626 |
-
envel_r,
|
627 |
-
const,
|
628 |
-
],
|
629 |
-
outputs=[output_base],
|
630 |
-
cache_examples=False,
|
631 |
-
)
|
632 |
-
|
633 |
tts_button.click(
|
634 |
fn=infer_tts_audio,
|
635 |
inputs=[tts_voice, tts_text, tts_active_play],
|
636 |
outputs=[aud, tts_play],
|
637 |
)
|
638 |
|
639 |
-
down_active_gui = down_active_conf()
|
640 |
-
down_info = gr.Markdown(
|
641 |
-
"Provide a link to a zip file, like this one: `https://huggingface.co/mrmocciai/Models/resolve/main/Genshin%20Impact/ayaka-v2.zip?download=true`, or separate links with a comma for the .pth and .index files, like this: `https://huggingface.co/sail-rvc/ayaka-jp/resolve/main/model.pth?download=true, https://huggingface.co/sail-rvc/ayaka-jp/resolve/main/model.index?download=true`",
|
642 |
-
visible=False
|
643 |
-
)
|
644 |
-
with gr.Row():
|
645 |
-
with gr.Column(scale=3):
|
646 |
-
down_url_gui = down_url_conf()
|
647 |
-
with gr.Column(scale=1):
|
648 |
-
down_button_gui = down_button_conf()
|
649 |
|
650 |
with gr.Column():
|
651 |
with gr.Row():
|
652 |
model = model_conf()
|
653 |
indx = index_conf()
|
654 |
|
655 |
-
down_active_gui.change(
|
656 |
-
show_components_down,
|
657 |
-
[down_active_gui],
|
658 |
-
[down_info, down_url_gui, down_button_gui]
|
659 |
-
)
|
660 |
-
|
661 |
-
down_button_gui.click(
|
662 |
-
get_my_model,
|
663 |
-
[down_url_gui],
|
664 |
-
[model, indx]
|
665 |
-
)
|
666 |
|
667 |
algo = pitch_algo_conf()
|
668 |
algo_lvl = pitch_lvl_conf()
|
@@ -696,6 +645,36 @@ def get_gui(theme):
|
|
696 |
outputs=[output_base],
|
697 |
)
|
698 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
699 |
return app
|
700 |
|
701 |
|
|
|
600 |
aud = audio_conf()
|
601 |
# gr.HTML("<hr>")
|
602 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
603 |
tts_button.click(
|
604 |
fn=infer_tts_audio,
|
605 |
inputs=[tts_voice, tts_text, tts_active_play],
|
606 |
outputs=[aud, tts_play],
|
607 |
)
|
608 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
|
610 |
with gr.Column():
|
611 |
with gr.Row():
|
612 |
model = model_conf()
|
613 |
indx = index_conf()
|
614 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
615 |
|
616 |
algo = pitch_algo_conf()
|
617 |
algo_lvl = pitch_lvl_conf()
|
|
|
645 |
outputs=[output_base],
|
646 |
)
|
647 |
|
648 |
+
gr.Examples(
|
649 |
+
examples=[
|
650 |
+
[
|
651 |
+
["./mnr.mp3"],
|
652 |
+
"./emu_v2.pth",
|
653 |
+
"rmvpe+",
|
654 |
+
0,
|
655 |
+
"./emu_v2.index",
|
656 |
+
0.75,
|
657 |
+
3,
|
658 |
+
0.25,
|
659 |
+
0.50,
|
660 |
+
],
|
661 |
+
],
|
662 |
+
fn=run,
|
663 |
+
inputs=[
|
664 |
+
aud,
|
665 |
+
model,
|
666 |
+
algo,
|
667 |
+
algo_lvl,
|
668 |
+
indx,
|
669 |
+
indx_inf,
|
670 |
+
res_fc,
|
671 |
+
envel_r,
|
672 |
+
const,
|
673 |
+
],
|
674 |
+
outputs=[output_base],
|
675 |
+
cache_examples=False,
|
676 |
+
)
|
677 |
+
|
678 |
return app
|
679 |
|
680 |
|