Politrees commited on
Commit
ccc7052
·
verified ·
1 Parent(s): dc95ece

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -108,8 +108,9 @@ def rename_stems(input_file, output_dir, stems, output_format):
108
  renamed_stems.append(new_path)
109
  return renamed_stems
110
 
111
- def roformer_separator(audio, model, seg_size, overlap, model_dir, out_dir, out_format, norm_thresh, amp_thresh):
112
  """Separate audio using Roformer model."""
 
113
  with tempfile.TemporaryDirectory() as tmp_dir:
114
  separator = Separator(
115
  model_file_dir=model_dir,
 
108
  renamed_stems.append(new_path)
109
  return renamed_stems
110
 
111
+ def roformer_separator(audio, model_key, seg_size, overlap, model_dir, out_dir, out_format, norm_thresh, amp_thresh):
112
  """Separate audio using Roformer model."""
113
+ model = ROFORMER_MODELS[model_key]
114
  with tempfile.TemporaryDirectory() as tmp_dir:
115
  separator = Separator(
116
  model_file_dir=model_dir,