Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,8 +13,8 @@ def separate_audio(audio_path):
|
|
| 13 |
print(f"{gradio_temp_path=}")
|
| 14 |
print(f"{audio_filename=}")
|
| 15 |
print(f"{stem_count=}")
|
| 16 |
-
os.makedirs(gradio_temp_path + f"/
|
| 17 |
-
command = f"spleeter separate -p spleeter:{stem_count}stems {audio_path} -o {gradio_temp_path}/
|
| 18 |
command = command.split()
|
| 19 |
print(f"{command=}")
|
| 20 |
|
|
@@ -22,8 +22,8 @@ def separate_audio(audio_path):
|
|
| 22 |
print(result)
|
| 23 |
|
| 24 |
paths = []
|
| 25 |
-
paths.append(gradio_temp_path + f"/
|
| 26 |
-
paths.append(gradio_temp_path + f"/
|
| 27 |
return [gr.Audio(path) for path in paths]
|
| 28 |
|
| 29 |
iface = gr.Interface(
|
|
|
|
| 13 |
print(f"{gradio_temp_path=}")
|
| 14 |
print(f"{audio_filename=}")
|
| 15 |
print(f"{stem_count=}")
|
| 16 |
+
os.makedirs(gradio_temp_path + f"/{audio_filename}/", exist_ok=True)
|
| 17 |
+
command = f"spleeter separate -p spleeter:{stem_count}stems {audio_path} -o {gradio_temp_path}/"
|
| 18 |
command = command.split()
|
| 19 |
print(f"{command=}")
|
| 20 |
|
|
|
|
| 22 |
print(result)
|
| 23 |
|
| 24 |
paths = []
|
| 25 |
+
paths.append(gradio_temp_path + f"/{audio_filename}/accompaniment.wav")
|
| 26 |
+
paths.append(gradio_temp_path + f"/{audio_filename}/vocals.wav")
|
| 27 |
return [gr.Audio(path) for path in paths]
|
| 28 |
|
| 29 |
iface = gr.Interface(
|