Spaces:
Runtime error
Runtime error
Commit
•
0a5be4b
1
Parent(s):
4e4199e
Update app.py (#1)
Browse files- Update app.py (b70de0b1212f60ee389a9316dae66f2c5544ced2)
Co-authored-by: Juan Pablo Díaz <jpdiazpardo@users.noreply.huggingface.co>
app.py
CHANGED
@@ -8,7 +8,7 @@ def spleeter(aud, instrument):
|
|
8 |
shutil.rmtree("output")
|
9 |
except FileNotFoundError:
|
10 |
pass
|
11 |
-
separator.separate_to_file(aud
|
12 |
return f"./output/audio_example/{instrument}.wav", f"./output/audio_example/{instrument}.wav"
|
13 |
|
14 |
inputs = [
|
|
|
8 |
shutil.rmtree("output")
|
9 |
except FileNotFoundError:
|
10 |
pass
|
11 |
+
separator.separate_to_file(aud, "output/", filename_format="audio_example/{instrument}.wav")
|
12 |
return f"./output/audio_example/{instrument}.wav", f"./output/audio_example/{instrument}.wav"
|
13 |
|
14 |
inputs = [
|