r3gm commited on
Commit
8c5624f
1 Parent(s): 722bdbf

Update webUI.py

Browse files
Files changed (1) hide show
  1. webUI.py +14 -9
webUI.py CHANGED
@@ -150,6 +150,11 @@ class UVRWebUI:
150
  def define_layout(self):
151
  with gr.Blocks() as app:
152
  self.app = app
 
 
 
 
 
153
  with gr.Tabs():
154
  with gr.TabItem("process"):
155
  with gr.Row():
@@ -168,7 +173,7 @@ class UVRWebUI:
168
  label=AGGRESSION_SETTING_MAIN_LABEL, interactive=True)
169
  with gr.Row():
170
  self.use_gpu = gr.Checkbox(
171
- label=GPU_CONVERSION_MAIN_LABEL+'>>>use this', value=True, interactive=True) #label=GPU_CONVERSION_MAIN_LABEL, value=root.is_gpu_conversion_var.get(), interactive=True)
172
  self.primary_stem_only = gr.Checkbox(
173
  label=f"{PRIMARY_STEM} only", value=root.is_primary_stem_only_var.get(), interactive=True)
174
  self.secondary_stem_only = gr.Checkbox(
@@ -259,17 +264,17 @@ import os
259
  import wget
260
 
261
  for category, models in model_dict.items():
262
- if category == 'VR Arc' or category == 'MDX-Net':
 
 
 
 
263
 
264
  for model_name, model_url in models.items():
265
- if category == 'VR Arc':
266
- model_path = 'models/VR_Models'
267
- elif category == 'MDX-Net':
268
- model_path = 'models/MDX_Net_Models'
269
 
270
- os.system(f"aria2c --optimize-concurrent-downloads --console-log-level=error --summary-interval=10 -j5 -x16 -s16 -k1M -c -d {model_path} -Z {model_url}")
271
-
272
- print("models downloaded successfully.")
273
  else:
274
  print(f"Ignoring category: {category}")
275
 
 
150
  def define_layout(self):
151
  with gr.Blocks() as app:
152
  self.app = app
153
+ gr.HTML("<h1> 🎵 Ultimate Vocal Remover WebUI 🎵 </h1>")
154
+ gr.Markdown("Duplicate the space for use in private")
155
+ gr.Markdown(
156
+ "[![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/raw/main/duplicate-this-space-sm-dark.svg)](https://huggingface.co/spaces/r3gm/Ultimate-Vocal-Remover-WebUI?duplicate=true)\n\n"
157
+ )
158
  with gr.Tabs():
159
  with gr.TabItem("process"):
160
  with gr.Row():
 
173
  label=AGGRESSION_SETTING_MAIN_LABEL, interactive=True)
174
  with gr.Row():
175
  self.use_gpu = gr.Checkbox(
176
+ label=GPU_CONVERSION_MAIN_LABEL+'>>>use this', value=True, interactive=False) #label=GPU_CONVERSION_MAIN_LABEL, value=root.is_gpu_conversion_var.get(), interactive=True)
177
  self.primary_stem_only = gr.Checkbox(
178
  label=f"{PRIMARY_STEM} only", value=root.is_primary_stem_only_var.get(), interactive=True)
179
  self.secondary_stem_only = gr.Checkbox(
 
264
  import wget
265
 
266
  for category, models in model_dict.items():
267
+ if category in ['VR Arc', 'MDX-Net']:
268
+ if category == 'VR Arc':
269
+ model_path = 'models/VR_Models'
270
+ elif category == 'MDX-Net':
271
+ model_path = 'models/MDX_Net_Models'
272
 
273
  for model_name, model_url in models.items():
274
+ cmd = f"aria2c --optimize-concurrent-downloads --console-log-level=error --summary-interval=10 -j5 -x16 -s16 -k1M -c -d {model_path} -Z {model_url}"
275
+ os.system(cmd)
 
 
276
 
277
+ print("Models downloaded successfully.")
 
 
278
  else:
279
  print(f"Ignoring category: {category}")
280