Spaces:
Sleeping
Sleeping
File size: 4,004 Bytes
542cdeb 803cfee 1fed098 e89b904 a3d47ee e89b904 2ac1c18 34e6575 542cdeb 2ac1c18 e89b904 7c428c9 34e6575 23854f9 2879cb0 7c1dbf5 a3d47ee 7c1dbf5 0160fa1 a3d47ee 0160fa1 a3d47ee f223387 7c1dbf5 a3d47ee 7c1dbf5 a3d47ee 23854f9 7c1dbf5 a3d47ee 7c1dbf5 a3d47ee 23854f9 7c1dbf5 a3d47ee d84516b a3d47ee 2e2d848 a3d47ee 2e2d848 a3d47ee 2e2d848 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 |
import streamlit as st
page_bg_img = f"""
<style>
[data-testid="stAppViewContainer"] > .main {{
background-image: url("https://i.postimg.cc/4xgNnkfX/Untitled-design.png");
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
background-attachment: local;
}}
[data-testid="stHeader"] {{
background: rgba(0,0,0,0);
}}
</style>
"""
st.markdown(page_bg_img, unsafe_allow_html=True)
audioldm_exmples_input_paths = []
audioldm_exmples_original_paths = []
exmples_prompts = ["wiwi", "pipi","wifi"]
st.title('Drums generation in different models')
add_selectbox = st.sidebar.selectbox(
'How would you like to be contacted?',
('Email', 'Home phone', 'Mobile phone')
)
# Add a slider to the sidebar:
add_slider = st.sidebar.slider(
'Select a range of values',
0.0, 100.0, (25.0, 75.0)
)
st.subheader('This is a subheader with a divider', divider='rainbow')
with st.container(border = True, height=len(exmples_prompts)*200):
st.title("Examples")
col1, col2, col3, col4 = st.columns(4)
with col1:
st.subheader("original audio")
# with st.container(border = True,height=120):
# st.write("some prompts...")
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
# st.write("some prompts...")
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
with col2:
st.subheader("Separated Audio")
# with st.container(border = True,height=120):
# # st.write("some prompts...")
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
# # st.write("some prompts...")
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
with col3:
st.subheader("AudioLDM2")
# with st.container(border = True,height=120):
# st.write("some prompts...")
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
# st.write("some prompts...")
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
with col4:
st.subheader("StableAudio")
# with st.container(border = True,height=120):
# st.write("some prompts...")
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
# st.write("some prompts...")
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
for p in exmples_prompts:
with st.container(border = True,height=120):
st.write(p)
col1, col2, col3, col4 = st.columns(4)
with col1:
# st.write("some prompts...")
st.audio("goodres.wav", format="audio/mpeg", loop=False)
# st.write("some prompts...")
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
with col2:
# st.subheader("Separated Audio")
# with st.container(border = True,height=120):
# st.write("some prompts...")
st.audio("goodres.wav", format="audio/mpeg", loop=False)
# st.write("some prompts...")
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
with col3:
# st.subheader("AudioLDM2")
# with st.container(border = True,height=120):
# st.write("some prompts...")
st.audio("goodres.wav", format="audio/mpeg", loop=False)
# st.write("some prompts...")
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
with col4:
# st.subheader("StableAudio")
# with st.container(border = True,height=120):
# st.write("some prompts...")
st.audio("goodres.wav", format="audio/mpeg", loop=False)
# st.write("some prompts...")
# st.audio("goodres.wav", format="audio/mpeg", loop=False)
|