amirgame197 commited on
Commit
006a4a6
1 Parent(s): f66fa62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -13,8 +13,8 @@ def separate_audio(audio_path):
13
  print(f"{gradio_temp_path=}")
14
  print(f"{audio_filename=}")
15
  print(f"{stem_count=}")
16
- os.makedirs(gradio_temp_path + f"/separated_audio/{audio_filename}/", exist_ok=True)
17
- command = f"spleeter separate -p spleeter:{stem_count}stems {audio_path} -o {gradio_temp_path}/separated_audio/"
18
  command = command.split()
19
  print(f"{command=}")
20
 
@@ -22,8 +22,8 @@ def separate_audio(audio_path):
22
  print(result)
23
 
24
  paths = []
25
- paths.append(gradio_temp_path + f"/separated_audio/{audio_filename}/accompaniment.wav")
26
- paths.append(gradio_temp_path + f"/separated_audio/{audio_filename}/vocals.wav")
27
  return [gr.Audio(path) for path in paths]
28
 
29
  iface = gr.Interface(
 
13
  print(f"{gradio_temp_path=}")
14
  print(f"{audio_filename=}")
15
  print(f"{stem_count=}")
16
+ os.makedirs(gradio_temp_path + f"/{audio_filename}/", exist_ok=True)
17
+ command = f"spleeter separate -p spleeter:{stem_count}stems {audio_path} -o {gradio_temp_path}/"
18
  command = command.split()
19
  print(f"{command=}")
20
 
 
22
  print(result)
23
 
24
  paths = []
25
+ paths.append(gradio_temp_path + f"/{audio_filename}/accompaniment.wav")
26
+ paths.append(gradio_temp_path + f"/{audio_filename}/vocals.wav")
27
  return [gr.Audio(path) for path in paths]
28
 
29
  iface = gr.Interface(