Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,11 +22,8 @@ def separate_audio(audio_path):
|
|
22 |
result = subprocess.run(command)
|
23 |
print(result)
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
time.sleep(1)
|
28 |
-
subprocess.run(f"ffmpeg -i {gradio_temp_path}/{audio_filename}/accompaniment.wav.bak {gradio_temp_path}/{audio_filename}/accompaniment.mp3")
|
29 |
-
subprocess.run(f"ffmpeg -i {gradio_temp_path}/{audio_filename}/vocals.wav.bak {gradio_temp_path}/{audio_filename}/vocals.mp3")
|
30 |
|
31 |
paths = []
|
32 |
paths.append(gradio_temp_path + f"/{audio_filename}/accompaniment.mp3")
|
@@ -35,6 +32,7 @@ def separate_audio(audio_path):
|
|
35 |
|
36 |
iface = gr.Interface(
|
37 |
fn=separate_audio,
|
|
|
38 |
inputs=[gr.Audio(type="filepath", label="Audio File")],
|
39 |
outputs=[gr.Audio(label='Accompaniment'), gr.Audio(label='Vocals')],
|
40 |
live=True
|
|
|
22 |
result = subprocess.run(command)
|
23 |
print(result)
|
24 |
|
25 |
+
subprocess.run(f"ffmpeg -i {gradio_temp_path}/{audio_filename}/accompaniment.wav {gradio_temp_path}/{audio_filename}/accompaniment.mp3")
|
26 |
+
subprocess.run(f"ffmpeg -i {gradio_temp_path}/{audio_filename}/vocals.wav {gradio_temp_path}/{audio_filename}/vocals.mp3")
|
|
|
|
|
|
|
27 |
|
28 |
paths = []
|
29 |
paths.append(gradio_temp_path + f"/{audio_filename}/accompaniment.mp3")
|
|
|
32 |
|
33 |
iface = gr.Interface(
|
34 |
fn=separate_audio,
|
35 |
+
title="Professional(😂) One click music vocal extraction using Spleeter"
|
36 |
inputs=[gr.Audio(type="filepath", label="Audio File")],
|
37 |
outputs=[gr.Audio(label='Accompaniment'), gr.Audio(label='Vocals')],
|
38 |
live=True
|