Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,8 +22,8 @@ def separate_audio(audio_path):
|
|
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")
|
|
|
22 |
result = subprocess.run(command)
|
23 |
print(result)
|
24 |
|
25 |
+
subprocess.run(f"ffmpeg -y -i {gradio_temp_path}/{audio_filename}/accompaniment.wav {gradio_temp_path}/{audio_filename}/accompaniment.mp3")
|
26 |
+
subprocess.run(f"ffmpeg -y -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")
|