Spaces:
Running
Running
Update main/app/app.py
Browse files- main/app/app.py +9 -8
main/app/app.py
CHANGED
@@ -25,6 +25,12 @@ with gr.Blocks(title="Ultimate RVC Maker ⚡", theme=theme) as app:
|
|
25 |
gr.HTML("<h1 style='text-align: center;'>Ultimate RVC Maker ⚡</h1>")
|
26 |
|
27 |
with gr.Tabs():
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
with gr.TabItem(translations["separator_tab"], visible=configs.get("separator_tab", True)):
|
29 |
gr.Markdown(f"## {translations['separator_tab']}")
|
30 |
with gr.Row():
|
@@ -41,9 +47,7 @@ with gr.Blocks(title="Ultimate RVC Maker ⚡", theme=theme) as app:
|
|
41 |
with gr.Row(equal_height=True):
|
42 |
separator_model = gr.Dropdown(label=translations["separator_model"], value=uvr_model[0], choices=uvr_model, interactive=True)
|
43 |
separator_backing_model = gr.Dropdown(label=translations["separator_backing_model"], value="Version-1", choices=["Version-1", "Version-2"], interactive=True, visible=backing.value)
|
44 |
-
|
45 |
-
with gr.Column():
|
46 |
-
separator_button = gr.Button(translations["separator_tab"], variant="primary")
|
47 |
with gr.Row():
|
48 |
with gr.Column():
|
49 |
with gr.Group():
|
@@ -75,6 +79,7 @@ with gr.Blocks(title="Ultimate RVC Maker ⚡", theme=theme) as app:
|
|
75 |
input_audio = gr.Dropdown(label=translations["audio_path"], value="", choices=paths_for_files, allow_custom_value=True, interactive=True)
|
76 |
refesh_separator = gr.Button(translations["refesh"])
|
77 |
output_separator = gr.Textbox(label=translations["output_folder"], value="audios", placeholder="audios", info=translations["output_folder_info"], interactive=True)
|
|
|
78 |
with gr.Row():
|
79 |
gr.Markdown(translations["output_separator"])
|
80 |
with gr.Row():
|
@@ -123,11 +128,6 @@ with gr.Blocks(title="Ultimate RVC Maker ⚡", theme=theme) as app:
|
|
123 |
outputs=[original_vocals, instruments_audio, main_vocals, backing_vocals],
|
124 |
api_name='separator_music'
|
125 |
)
|
126 |
-
|
127 |
-
with gr.TabItem("Inference"):
|
128 |
-
inference_tabs()
|
129 |
-
with gr.TabItem("Model Options"):
|
130 |
-
model_tabs()
|
131 |
utils_tabs()
|
132 |
with gr.TabItem(translations["settings"], visible=configs.get("settings_tab", True)):
|
133 |
gr.Markdown(translations["settings_markdown"])
|
@@ -182,6 +182,7 @@ with gr.Blocks(title="Ultimate RVC Maker ⚡", theme=theme) as app:
|
|
182 |
train_stop.click(fn=lambda model_name_stop: stop_pid("train_pid", model_name_stop, True), inputs=[model_name_stop], outputs=[])
|
183 |
with gr.Row():
|
184 |
audioldm2_stop.click(fn=lambda: stop_pid("audioldm2_pid", None, False), inputs=[], outputs=[])
|
|
|
185 |
|
186 |
with gr.Row():
|
187 |
gr.Markdown(translations["terms_of_use"])
|
|
|
25 |
gr.HTML("<h1 style='text-align: center;'>Ultimate RVC Maker ⚡</h1>")
|
26 |
|
27 |
with gr.Tabs():
|
28 |
+
|
29 |
+
|
30 |
+
with gr.TabItem("Inference"):
|
31 |
+
inference_tabs()
|
32 |
+
with gr.TabItem("Model Options"):
|
33 |
+
model_tabs()
|
34 |
with gr.TabItem(translations["separator_tab"], visible=configs.get("separator_tab", True)):
|
35 |
gr.Markdown(f"## {translations['separator_tab']}")
|
36 |
with gr.Row():
|
|
|
47 |
with gr.Row(equal_height=True):
|
48 |
separator_model = gr.Dropdown(label=translations["separator_model"], value=uvr_model[0], choices=uvr_model, interactive=True)
|
49 |
separator_backing_model = gr.Dropdown(label=translations["separator_backing_model"], value="Version-1", choices=["Version-1", "Version-2"], interactive=True, visible=backing.value)
|
50 |
+
|
|
|
|
|
51 |
with gr.Row():
|
52 |
with gr.Column():
|
53 |
with gr.Group():
|
|
|
79 |
input_audio = gr.Dropdown(label=translations["audio_path"], value="", choices=paths_for_files, allow_custom_value=True, interactive=True)
|
80 |
refesh_separator = gr.Button(translations["refesh"])
|
81 |
output_separator = gr.Textbox(label=translations["output_folder"], value="audios", placeholder="audios", info=translations["output_folder_info"], interactive=True)
|
82 |
+
separator_button = gr.Button(translations["separator_tab"], variant="primary")
|
83 |
with gr.Row():
|
84 |
gr.Markdown(translations["output_separator"])
|
85 |
with gr.Row():
|
|
|
128 |
outputs=[original_vocals, instruments_audio, main_vocals, backing_vocals],
|
129 |
api_name='separator_music'
|
130 |
)
|
|
|
|
|
|
|
|
|
|
|
131 |
utils_tabs()
|
132 |
with gr.TabItem(translations["settings"], visible=configs.get("settings_tab", True)):
|
133 |
gr.Markdown(translations["settings_markdown"])
|
|
|
182 |
train_stop.click(fn=lambda model_name_stop: stop_pid("train_pid", model_name_stop, True), inputs=[model_name_stop], outputs=[])
|
183 |
with gr.Row():
|
184 |
audioldm2_stop.click(fn=lambda: stop_pid("audioldm2_pid", None, False), inputs=[], outputs=[])
|
185 |
+
|
186 |
|
187 |
with gr.Row():
|
188 |
gr.Markdown(translations["terms_of_use"])
|