Spaces:
Running
Running
Eddycrack864
commited on
Commit
β’
9cd0983
1
Parent(s):
5cd025d
Upload app.py
Browse files
app.py
CHANGED
@@ -178,7 +178,7 @@ def mdxnet_separator(mdxnet_audio, mdxnet_model, mdxnet_output_format, mdxnet_se
|
|
178 |
|
179 |
return stem1_file, stem2_file
|
180 |
|
181 |
-
def vrarch_separator(vrarch_audio, vrarch_model, vrarch_output_format, vrarch_window_size, vrarch_agression,
|
182 |
files_list = []
|
183 |
files_list.clear()
|
184 |
directory = "./outputs"
|
@@ -188,9 +188,9 @@ def vrarch_separator(vrarch_audio, vrarch_model, vrarch_output_format, vrarch_wi
|
|
188 |
write(f'{random_id}.wav', vrarch_audio[0], vrarch_audio[1])
|
189 |
prompt = f"audio-separator {random_id}.wav --model_filename {vrarch_model} --output_dir=./outputs --output_format={vrarch_output_format} --normalization=0.9 --vr_window_size={vrarch_window_size} --vr_aggression={vrarch_agression}"
|
190 |
|
191 |
-
if
|
192 |
prompt += " --vr_enable_tta"
|
193 |
-
if
|
194 |
prompt += " --vr_high_end_process"
|
195 |
|
196 |
os.system(prompt)
|
@@ -420,13 +420,13 @@ with gr.Blocks(title="π΅ UVR5 UI π΅") as app:
|
|
420 |
vrarch_tta = gr.Checkbox(
|
421 |
label = "TTA",
|
422 |
info = "Enable Test-Time-Augmentation; slow but improves quality.",
|
423 |
-
value =
|
424 |
interactive = True
|
425 |
)
|
426 |
vrarch_high_end_process = gr.Checkbox(
|
427 |
label = "High End Process",
|
428 |
info = "Mirror the missing frequency range of the output.",
|
429 |
-
value =
|
430 |
interactive = True
|
431 |
)
|
432 |
with gr.Row():
|
|
|
178 |
|
179 |
return stem1_file, stem2_file
|
180 |
|
181 |
+
def vrarch_separator(vrarch_audio, vrarch_model, vrarch_output_format, vrarch_window_size, vrarch_agression, vrarch_tta, vrarch_high_end_process):
|
182 |
files_list = []
|
183 |
files_list.clear()
|
184 |
directory = "./outputs"
|
|
|
188 |
write(f'{random_id}.wav', vrarch_audio[0], vrarch_audio[1])
|
189 |
prompt = f"audio-separator {random_id}.wav --model_filename {vrarch_model} --output_dir=./outputs --output_format={vrarch_output_format} --normalization=0.9 --vr_window_size={vrarch_window_size} --vr_aggression={vrarch_agression}"
|
190 |
|
191 |
+
if vrarch_tta:
|
192 |
prompt += " --vr_enable_tta"
|
193 |
+
if vrarch_high_end_process:
|
194 |
prompt += " --vr_high_end_process"
|
195 |
|
196 |
os.system(prompt)
|
|
|
420 |
vrarch_tta = gr.Checkbox(
|
421 |
label = "TTA",
|
422 |
info = "Enable Test-Time-Augmentation; slow but improves quality.",
|
423 |
+
value = bool,
|
424 |
interactive = True
|
425 |
)
|
426 |
vrarch_high_end_process = gr.Checkbox(
|
427 |
label = "High End Process",
|
428 |
info = "Mirror the missing frequency range of the output.",
|
429 |
+
value = bool,
|
430 |
interactive = True
|
431 |
)
|
432 |
with gr.Row():
|