Spaces:
Build error
Build error
update gif
Browse files
app.py
CHANGED
@@ -200,7 +200,7 @@ def inference(audio, vocals, bass, drums, other, piano, guitar, lead_vocals, bac
|
|
200 |
|
201 |
# Return the outputs along with the loading GIF state
|
202 |
loading_gif_path = "7RwF.gif" if show_loading_gif else ""
|
203 |
-
return loading_gif_path, audio_outputs
|
204 |
|
205 |
# Define checkboxes for each stem
|
206 |
checkbox_labels = ["Full Vocals", "Bass", "Drums", "Other", "Piano", "Guitar", "Lead Vocals", "Backing Vocals"]
|
@@ -212,7 +212,7 @@ description = "Music Source Separation in the Waveform Domain. Upload your audio
|
|
212 |
iface = gr.Interface(
|
213 |
inference,
|
214 |
[gr.components.Audio(type="numpy", label="Input")] + checkboxes,
|
215 |
-
[gr.Image()
|
216 |
title=title,
|
217 |
description=description,
|
218 |
)
|
|
|
200 |
|
201 |
# Return the outputs along with the loading GIF state
|
202 |
loading_gif_path = "7RwF.gif" if show_loading_gif else ""
|
203 |
+
return loading_gif_path, *audio_outputs
|
204 |
|
205 |
# Define checkboxes for each stem
|
206 |
checkbox_labels = ["Full Vocals", "Bass", "Drums", "Other", "Piano", "Guitar", "Lead Vocals", "Backing Vocals"]
|
|
|
212 |
iface = gr.Interface(
|
213 |
inference,
|
214 |
[gr.components.Audio(type="numpy", label="Input")] + checkboxes,
|
215 |
+
[gr.Image()] + [gr.Audio(label=label, visible=False) for label in checkbox_labels],
|
216 |
title=title,
|
217 |
description=description,
|
218 |
)
|