Update app.py
Browse files
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.
|
71 |
-
drums_path = f"{gradio_temp_path}/separated_audio/{audio_filename}/drums.
|
72 |
-
bass_path = f"{gradio_temp_path}/separated_audio/{audio_filename}/bass.
|
73 |
-
other_path = f"{gradio_temp_path}/separated_audio/{audio_filename}/other.
|
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/
|
|
|
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)
|