Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -380,7 +380,7 @@ def demucs_separator(audio, model_key, seg_size, shifts, overlap, segments_enabl
|
|
380 |
|
381 |
stems = [os.path.join(out_dir, file_name) for file_name in separation]
|
382 |
|
383 |
-
if
|
384 |
return stems[0], stems[1], stems[2], stems[3], stems[4], stems[5]
|
385 |
else:
|
386 |
return stems[0], stems[1], stems[2], stems[3], None, None
|
@@ -389,7 +389,7 @@ def demucs_separator(audio, model_key, seg_size, shifts, overlap, segments_enabl
|
|
389 |
|
390 |
def update_stems(model):
|
391 |
"""Update the visibility of stem outputs based on the selected Demucs model."""
|
392 |
-
if model == "htdemucs_6s
|
393 |
return gr.update(visible=True)
|
394 |
else:
|
395 |
return gr.update(visible=False)
|
|
|
380 |
|
381 |
stems = [os.path.join(out_dir, file_name) for file_name in separation]
|
382 |
|
383 |
+
if model_key == "htdemucs_6s":
|
384 |
return stems[0], stems[1], stems[2], stems[3], stems[4], stems[5]
|
385 |
else:
|
386 |
return stems[0], stems[1], stems[2], stems[3], None, None
|
|
|
389 |
|
390 |
def update_stems(model):
|
391 |
"""Update the visibility of stem outputs based on the selected Demucs model."""
|
392 |
+
if model == "htdemucs_6s":
|
393 |
return gr.update(visible=True)
|
394 |
else:
|
395 |
return gr.update(visible=False)
|