Spaces:
Runtime error
Runtime error
Corrected Paths
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def inference(audio):
|
|
| 29 |
|
| 30 |
# Collecting all file paths
|
| 31 |
files = [f"./out/htdemucs_6s/test/{stem}.wav" for stem in ["vocals", "bass", "drums", "other", "piano", "guitar"]]
|
| 32 |
-
files.extend([primary_stem_path
|
| 33 |
|
| 34 |
# Check if files exist
|
| 35 |
existing_files = [file for file in files if os.path.isfile(file)]
|
|
@@ -45,7 +45,7 @@ description = "Music Source Separation in the Waveform Domain. To use it, simply
|
|
| 45 |
gr.Interface(
|
| 46 |
inference,
|
| 47 |
gr.components.Audio(type="numpy", label="Input"),
|
| 48 |
-
[gr.components.Audio(type="filepath", label=stem) for stem in ["Full Vocals",
|
| 49 |
title=title,
|
| 50 |
description=description,
|
| 51 |
).launch()
|
|
|
|
| 29 |
|
| 30 |
# Collecting all file paths
|
| 31 |
files = [f"./out/htdemucs_6s/test/{stem}.wav" for stem in ["vocals", "bass", "drums", "other", "piano", "guitar"]]
|
| 32 |
+
files.extend([secondary_stem_path,primary_stem_path ])
|
| 33 |
|
| 34 |
# Check if files exist
|
| 35 |
existing_files = [file for file in files if os.path.isfile(file)]
|
|
|
|
| 45 |
gr.Interface(
|
| 46 |
inference,
|
| 47 |
gr.components.Audio(type="numpy", label="Input"),
|
| 48 |
+
[gr.components.Audio(type="filepath", label=stem) for stem in ["Full Vocals","Bass", "Drums", "Other", "Piano", "Guitar", "Lead Vocals", "Chorus" ]],
|
| 49 |
title=title,
|
| 50 |
description=description,
|
| 51 |
).launch()
|