Spaces:
Runtime error
Runtime error
amirgame197
commited on
Commit
•
8219f10
1
Parent(s):
9f666f6
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def separate_audio(audio_path, stem_count):
|
|
12 |
print(f"{gradio_temp_path=}")
|
13 |
print(f"{audio_filename=}")
|
14 |
print(f"{stem_count=}")
|
15 |
-
os.makedirs(gradio_temp_path + f"/separated_audio/{audio_filename}/")
|
16 |
command = f"spleeter separate -p spleeter:{stem_count}stems {audio_path} -o {gradio_temp_path}/separated_audio/"
|
17 |
command = command.split()
|
18 |
print(f"{command=}")
|
|
|
12 |
print(f"{gradio_temp_path=}")
|
13 |
print(f"{audio_filename=}")
|
14 |
print(f"{stem_count=}")
|
15 |
+
os.makedirs(gradio_temp_path + f"/separated_audio/{audio_filename}/", exist_ok=True)
|
16 |
command = f"spleeter separate -p spleeter:{stem_count}stems {audio_path} -o {gradio_temp_path}/separated_audio/"
|
17 |
command = command.split()
|
18 |
print(f"{command=}")
|