Rozinamax commited on
Commit
6bbc638
1 Parent(s): 4ab6734

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -67,10 +67,10 @@ def separate_audio_by_stem(audio_path, stem_count):
67
 
68
  elif stem_count == 4:
69
 
70
- vocals_path = f"{gradio_temp_path}/separated_audio/{audio_filename}/vocals.mp3"
71
- drums_path = f"{gradio_temp_path}/separated_audio/{audio_filename}/drums.mp3"
72
- bass_path = f"{gradio_temp_path}/separated_audio/{audio_filename}/bass.mp3"
73
- other_path = f"{gradio_temp_path}/separated_audio/{audio_filename}/other.mp3"
74
 
75
  print(f"{vocals_path=} \t exists: {os.path.exists(vocals_path)}")
76
  print(f"{drums_path=} \t exists: {os.path.exists(drums_path)}")
@@ -128,4 +128,4 @@ if uploaded_file is not None:
128
  st.write("Output Files:")
129
  for audio in separate_audios:
130
  st.write(audio['description'])
131
- st.audio(audio['path'], format="audio/mp3", start_time=0)
 
67
 
68
  elif stem_count == 4:
69
 
70
+ vocals_path = f"{gradio_temp_path}/separated_audio/{audio_filename}/vocals.wav"
71
+ drums_path = f"{gradio_temp_path}/separated_audio/{audio_filename}/drums.wav"
72
+ bass_path = f"{gradio_temp_path}/separated_audio/{audio_filename}/bass.wav"
73
+ other_path = f"{gradio_temp_path}/separated_audio/{audio_filename}/other.wav"
74
 
75
  print(f"{vocals_path=} \t exists: {os.path.exists(vocals_path)}")
76
  print(f"{drums_path=} \t exists: {os.path.exists(drums_path)}")
 
128
  st.write("Output Files:")
129
  for audio in separate_audios:
130
  st.write(audio['description'])
131
+ st.audio(audio['path'], format="audio/m4a", start_time=0)