derina commited on
Commit
fb774b0
1 Parent(s): f3f65ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -6,8 +6,7 @@ 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")
@@ -29,4 +28,4 @@ examples = [
29
  ["audio_example.mp3", "vocals"]
30
  ]
31
 
32
- gr.Interface(spleeter, inputs, outputs, title=title, description=description, article=article, examples=examples).launch()
 
6
  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")
 
28
  ["audio_example.mp3", "vocals"]
29
  ]
30
 
31
+ gr.Interface(spleeter, title=title, description=description, article=article, examples=examples).launch()