Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ def spleeter(aud, instrument):
|
|
7 |
separator = Separator('spleeter:2stems')
|
8 |
try:
|
9 |
# shutil.rmtree("output")
|
|
|
10 |
except FileNotFoundError:
|
11 |
pass
|
12 |
separator.separate_to_file(aud.name, "output/", filename_format="audio_example/{instrument}.wav")
|
|
|
7 |
separator = Separator('spleeter:2stems')
|
8 |
try:
|
9 |
# shutil.rmtree("output")
|
10 |
+
return f"./output/audio_example/{instrument}.wav", f"./output/audio_example/{instrument}.wav"
|
11 |
except FileNotFoundError:
|
12 |
pass
|
13 |
separator.separate_to_file(aud.name, "output/", filename_format="audio_example/{instrument}.wav")
|