Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,12 +32,12 @@ def separate_audio(audio_path, stem_count):
|
|
| 32 |
if stem_count == 5:
|
| 33 |
paths.append(('Piano', f"{gradio_temp_path}/separated_audio/{randomnumber}/piano.wav"))
|
| 34 |
|
| 35 |
-
return paths
|
| 36 |
|
| 37 |
iface = gr.Interface(
|
| 38 |
fn=separate_audio,
|
| 39 |
inputs=[gr.Audio(type="filepath"), gr.Radio([2, 4, 5])],
|
| 40 |
-
outputs="
|
| 41 |
)
|
| 42 |
|
| 43 |
iface.launch()
|
|
|
|
| 32 |
if stem_count == 5:
|
| 33 |
paths.append(('Piano', f"{gradio_temp_path}/separated_audio/{randomnumber}/piano.wav"))
|
| 34 |
|
| 35 |
+
return paths[0]
|
| 36 |
|
| 37 |
iface = gr.Interface(
|
| 38 |
fn=separate_audio,
|
| 39 |
inputs=[gr.Audio(type="filepath"), gr.Radio([2, 4, 5])],
|
| 40 |
+
outputs=gr.Audio(type="filepath"),
|
| 41 |
)
|
| 42 |
|
| 43 |
iface.launch()
|