Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,8 @@ import os
|
|
3 |
import random
|
4 |
import subprocess
|
5 |
|
6 |
-
def separate_audio(audio_path
|
|
|
7 |
print(f"{audio_path=}")
|
8 |
head, tail = os.path.split(audio_path)
|
9 |
|
@@ -38,7 +39,7 @@ def separate_audio(audio_path, stem_count):
|
|
38 |
# Define the Gradio interface
|
39 |
iface = gr.Interface(
|
40 |
fn=separate_audio,
|
41 |
-
inputs=[gr.Audio(type="filepath")
|
42 |
outputs=[gr.Audio(label='Accompaniment'), gr.Audio(label='Vocals')]
|
43 |
)
|
44 |
|
|
|
3 |
import random
|
4 |
import subprocess
|
5 |
|
6 |
+
def separate_audio(audio_path):
|
7 |
+
stem_count = 2
|
8 |
print(f"{audio_path=}")
|
9 |
head, tail = os.path.split(audio_path)
|
10 |
|
|
|
39 |
# Define the Gradio interface
|
40 |
iface = gr.Interface(
|
41 |
fn=separate_audio,
|
42 |
+
inputs=[gr.Audio(type="filepath")],
|
43 |
outputs=[gr.Audio(label='Accompaniment'), gr.Audio(label='Vocals')]
|
44 |
)
|
45 |
|