derina commited on
Commit
856a492
1 Parent(s): a22fa4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ import shutil
6
  def spleeter(aud, instrument):
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")
 
6
  def spleeter(aud, instrument):
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")