Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ separator = Separator('spleeter:2stems')
|
|
| 12 |
def extract_stems(audio):
|
| 13 |
|
| 14 |
# initiate a folder for splitted files
|
| 15 |
-
foldername = str(random2.randrange(100000000))
|
| 16 |
|
| 17 |
# Separate audio input. Synchronous is true to wait for the end of split before going further
|
| 18 |
separator.separate_to_file(audio, foldername, filename_format= foldername + "/{instrument}.wav", synchronous=True)
|
|
|
|
| 12 |
def extract_stems(audio):
|
| 13 |
|
| 14 |
# initiate a folder for splitted files
|
| 15 |
+
foldername = "./output/" + str(random2.randrange(100000000))
|
| 16 |
|
| 17 |
# Separate audio input. Synchronous is true to wait for the end of split before going further
|
| 18 |
separator.separate_to_file(audio, foldername, filename_format= foldername + "/{instrument}.wav", synchronous=True)
|