Update app.py
Browse files
app.py
CHANGED
@@ -84,7 +84,7 @@ def separate_audio_by_stem(audio_path, stem_count):
|
|
84 |
st.write("Upload an audio file")
|
85 |
|
86 |
uploaded_file = st.file_uploader("Choose a file", type=["wav","mp3"])
|
87 |
-
selected_stem_count = st.radio("Select stem count", (2,
|
88 |
|
89 |
if uploaded_file is not None:
|
90 |
|
@@ -94,11 +94,9 @@ if uploaded_file is not None:
|
|
94 |
temp_file_path = temp_file.name
|
95 |
|
96 |
# Process the uploaded audio file
|
97 |
-
separated_audio_paths =
|
98 |
|
99 |
# Display the output files for download
|
100 |
st.write("Output Files:")
|
101 |
-
# st.audio(vocals_path, format="audio/wav", start_time=0)
|
102 |
-
# st.audio(accompaniment_path, format="audio/wav", start_time=0)
|
103 |
for path in separated_audio_paths:
|
104 |
st.audio(path, format="audio/wav", start_time=0)
|
|
|
84 |
st.write("Upload an audio file")
|
85 |
|
86 |
uploaded_file = st.file_uploader("Choose a file", type=["wav","mp3"])
|
87 |
+
selected_stem_count = st.radio("Select stem count", (2,4,5))
|
88 |
|
89 |
if uploaded_file is not None:
|
90 |
|
|
|
94 |
temp_file_path = temp_file.name
|
95 |
|
96 |
# Process the uploaded audio file
|
97 |
+
separated_audio_paths = separate_audio_by_stem(temp_file_path)
|
98 |
|
99 |
# Display the output files for download
|
100 |
st.write("Output Files:")
|
|
|
|
|
101 |
for path in separated_audio_paths:
|
102 |
st.audio(path, format="audio/wav", start_time=0)
|