Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
audioldm_exmples_input_paths = []
|
| 3 |
audioldm_exmples_original_paths = []
|
| 4 |
-
|
| 5 |
|
| 6 |
|
| 7 |
st.title('Drums generation in different models')
|
|
@@ -21,67 +21,68 @@ with st.container(border = True, height=300):
|
|
| 21 |
col1, col2, col3, col4 = st.columns(4)
|
| 22 |
with col1:
|
| 23 |
st.subheader("original audio")
|
| 24 |
-
with st.container(border = True,height=120):
|
| 25 |
|
| 26 |
# st.write("some prompts...")
|
| 27 |
-
st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 28 |
# st.write("some prompts...")
|
| 29 |
-
st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 30 |
with col2:
|
| 31 |
st.subheader("Separated Audio")
|
| 32 |
-
with st.container(border = True,height=120):
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
with col3:
|
| 39 |
st.subheader("AudioLDM2")
|
| 40 |
-
with st.container(border = True,height=120):
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
with col4:
|
| 47 |
st.subheader("StableAudio")
|
| 48 |
-
with st.container(border = True,height=120):
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
|
| 54 |
with st.container(border = True,height=120):
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 60 |
-
# st.write("some prompts...")
|
| 61 |
-
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 62 |
-
with col2:
|
| 63 |
-
# st.subheader("Separated Audio")
|
| 64 |
-
# with st.container(border = True,height=120):
|
| 65 |
-
|
| 66 |
# st.write("some prompts...")
|
| 67 |
-
|
| 68 |
-
# st.write("some prompts...")
|
| 69 |
-
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 70 |
-
with col3:
|
| 71 |
-
# st.subheader("AudioLDM2")
|
| 72 |
-
# with st.container(border = True,height=120):
|
| 73 |
-
|
| 74 |
-
# st.write("some prompts...")
|
| 75 |
-
st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 76 |
-
# st.write("some prompts...")
|
| 77 |
-
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 78 |
-
with col4:
|
| 79 |
-
# st.subheader("StableAudio")
|
| 80 |
-
# with st.container(border = True,height=120):
|
| 81 |
-
# st.write("some prompts...")
|
| 82 |
-
st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 83 |
# st.write("some prompts...")
|
| 84 |
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 85 |
|
| 86 |
|
| 87 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
audioldm_exmples_input_paths = []
|
| 3 |
audioldm_exmples_original_paths = []
|
| 4 |
+
exmples_prompts = ["wiwi", "pipi","wifi"]
|
| 5 |
|
| 6 |
|
| 7 |
st.title('Drums generation in different models')
|
|
|
|
| 21 |
col1, col2, col3, col4 = st.columns(4)
|
| 22 |
with col1:
|
| 23 |
st.subheader("original audio")
|
| 24 |
+
# with st.container(border = True,height=120):
|
| 25 |
|
| 26 |
# st.write("some prompts...")
|
| 27 |
+
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 28 |
# st.write("some prompts...")
|
| 29 |
+
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 30 |
with col2:
|
| 31 |
st.subheader("Separated Audio")
|
| 32 |
+
# with st.container(border = True,height=120):
|
| 33 |
|
| 34 |
+
# # st.write("some prompts...")
|
| 35 |
+
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 36 |
+
# # st.write("some prompts...")
|
| 37 |
+
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 38 |
with col3:
|
| 39 |
st.subheader("AudioLDM2")
|
| 40 |
+
# with st.container(border = True,height=120):
|
| 41 |
|
| 42 |
+
# st.write("some prompts...")
|
| 43 |
+
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 44 |
+
# st.write("some prompts...")
|
| 45 |
+
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 46 |
with col4:
|
| 47 |
st.subheader("StableAudio")
|
| 48 |
+
# with st.container(border = True,height=120):
|
| 49 |
+
# st.write("some prompts...")
|
| 50 |
+
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 51 |
+
# st.write("some prompts...")
|
| 52 |
+
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 53 |
|
| 54 |
with st.container(border = True,height=120):
|
| 55 |
+
for p in exmples_prompts:
|
| 56 |
+
st.write(p)
|
| 57 |
+
col1, col2, col3, col4 = st.columns(4)
|
| 58 |
+
with col1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
# st.write("some prompts...")
|
| 60 |
+
st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
# st.write("some prompts...")
|
| 62 |
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 63 |
+
with col2:
|
| 64 |
+
# st.subheader("Separated Audio")
|
| 65 |
+
# with st.container(border = True,height=120):
|
| 66 |
+
|
| 67 |
+
# st.write("some prompts...")
|
| 68 |
+
st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 69 |
+
# st.write("some prompts...")
|
| 70 |
+
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 71 |
+
with col3:
|
| 72 |
+
# st.subheader("AudioLDM2")
|
| 73 |
+
# with st.container(border = True,height=120):
|
| 74 |
+
|
| 75 |
+
# st.write("some prompts...")
|
| 76 |
+
st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 77 |
+
# st.write("some prompts...")
|
| 78 |
+
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 79 |
+
with col4:
|
| 80 |
+
# st.subheader("StableAudio")
|
| 81 |
+
# with st.container(border = True,height=120):
|
| 82 |
+
# st.write("some prompts...")
|
| 83 |
+
st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 84 |
+
# st.write("some prompts...")
|
| 85 |
+
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|
| 86 |
|
| 87 |
|
| 88 |
|