Politrees commited on
Commit
71d7fa0
·
verified ·
1 Parent(s): e42de32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -159,7 +159,7 @@ def roformer_separator(audio, model_key, seg_size, override_seg_size, overlap, p
159
  print(f"Separation complete!\nResults: {', '.join(separation)}")
160
 
161
  stems = [os.path.join(out_dir, file_name) for file_name in separation]
162
- return stems[0], stems[1]
163
  except Exception as e:
164
  raise RuntimeError(f"Roformer separation failed: {e}") from e
165
 
@@ -194,7 +194,7 @@ def mdx23c_separator(audio, model, seg_size, override_seg_size, overlap, pitch_s
194
  print(f"Separation complete!\nResults: {', '.join(separation)}")
195
 
196
  stems = [os.path.join(out_dir, file_name) for file_name in separation]
197
- return stems[0], stems[1]
198
  except Exception as e:
199
  raise RuntimeError(f"MDX23C separation failed: {e}") from e
200
 
 
159
  print(f"Separation complete!\nResults: {', '.join(separation)}")
160
 
161
  stems = [os.path.join(out_dir, file_name) for file_name in separation]
162
+ return stems[1], stems[0]
163
  except Exception as e:
164
  raise RuntimeError(f"Roformer separation failed: {e}") from e
165
 
 
194
  print(f"Separation complete!\nResults: {', '.join(separation)}")
195
 
196
  stems = [os.path.join(out_dir, file_name) for file_name in separation]
197
+ return stems[1], stems[0]
198
  except Exception as e:
199
  raise RuntimeError(f"MDX23C separation failed: {e}") from e
200