Spaces:
Running
Running
Update app.py
Browse files
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[
|
| 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[
|
| 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 |
|