Spaces:
Running
Running
ageraustine
commited on
Commit
•
722acb9
1
Parent(s):
147329e
move vocals to post-processing
Browse files
app.py
CHANGED
@@ -80,15 +80,13 @@ if st.button("Generate Audio") and genre and energy_level and description and te
|
|
80 |
sample_rate = response.json()[0]['sample_rate']
|
81 |
st.audio(st_state.audio, format="audio/wav", sample_rate=sample_rate, start_time=0)
|
82 |
|
83 |
-
|
84 |
-
|
85 |
|
|
|
86 |
if vocal_file:
|
87 |
st_state.vocal_audio = vocal_file.read()
|
88 |
|
89 |
-
# Post-processing options
|
90 |
-
st.header("Post-processing Options")
|
91 |
-
|
92 |
# Mixing
|
93 |
mix_vocals = st.checkbox("Mix Vocals")
|
94 |
if mix_vocals and st_state.vocal_audio is not None:
|
|
|
80 |
sample_rate = response.json()[0]['sample_rate']
|
81 |
st.audio(st_state.audio, format="audio/wav", sample_rate=sample_rate, start_time=0)
|
82 |
|
83 |
+
# Post-processing options
|
84 |
+
st.header("Post-processing Options")
|
85 |
|
86 |
+
vocal_file = st.file_uploader("Upload Vocal File", type=["mp3", "wav", "ogg", "flac", "aac"])
|
87 |
if vocal_file:
|
88 |
st_state.vocal_audio = vocal_file.read()
|
89 |
|
|
|
|
|
|
|
90 |
# Mixing
|
91 |
mix_vocals = st.checkbox("Mix Vocals")
|
92 |
if mix_vocals and st_state.vocal_audio is not None:
|