Update app.py
Browse files
app.py
CHANGED
@@ -1,69 +1,61 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
# Sidebar
|
4 |
-
st.sidebar.
|
5 |
-
st.sidebar.
|
6 |
-
st.sidebar.
|
7 |
-
st.sidebar.
|
8 |
-
st.sidebar.
|
9 |
-
st.sidebar.markdown("
|
10 |
-
st.sidebar.
|
11 |
-
st.sidebar.
|
12 |
-
st.sidebar.
|
13 |
-
st.sidebar.
|
14 |
-
st.sidebar.
|
|
|
15 |
|
16 |
-
# Main
|
17 |
st.title("Create")
|
18 |
|
19 |
# Form
|
20 |
-
st.
|
21 |
-
st.
|
22 |
-
|
23 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
24 |
st.button("Create ๐ต")
|
25 |
|
26 |
-
#
|
27 |
-
|
28 |
{"title": "Dance Under The Moonlight", "description": "acoustic guitar flamenco dance beat kizomba soaring vocalist progressive house", "version": "v3"},
|
29 |
{"title": "The Tale of Yggdrasil", "description": "folk acoustic storytelling", "version": "v3"},
|
30 |
{"title": "The Song of Yggdrasil", "description": "tropical latin acoustic", "version": "v3"},
|
|
|
31 |
{"title": "Sacred Frequencies", "description": "progressive edm uplifting", "version": "v3"},
|
32 |
{"title": "Let's Get Jokin'", "description": "progressive house electronic dubstep", "version": "v3"},
|
33 |
{"title": "Jokes That Make You Dance", "description": "marching band progressive house dance", "version": "v3"},
|
34 |
{"title": "Joke Parade", "description": "progressive house dance 128bpm marching band bass drum dubstep", "version": "v3"},
|
|
|
35 |
{"title": "Laughing On The Dancefloor", "description": "128bpm progressive house dance", "version": "v3"},
|
36 |
]
|
37 |
|
38 |
-
for
|
39 |
-
st.image("https://via.placeholder.com/50", width=50) # Placeholder for image
|
40 |
-
st.
|
41 |
-
st.
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
with col3:
|
48 |
-
st.button("Extend")
|
49 |
-
with col4:
|
50 |
-
st.checkbox("Public")
|
51 |
-
with col5:
|
52 |
-
st.button("๐")
|
53 |
|
54 |
-
#
|
55 |
-
st.markdown("---")
|
56 |
-
|
57 |
-
with col1:
|
58 |
-
st.button("โฎ๏ธ")
|
59 |
-
with col2:
|
60 |
-
st.button("โฏ๏ธ")
|
61 |
-
with col3:
|
62 |
-
st.button("โญ๏ธ")
|
63 |
-
with col4:
|
64 |
-
st.slider("Volume", 0, 100, 50)
|
65 |
-
with col5:
|
66 |
-
st.text("0:00")
|
67 |
|
68 |
|
69 |
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
# Sidebar
|
4 |
+
st.sidebar.title("Suno")
|
5 |
+
st.sidebar.button("Home")
|
6 |
+
st.sidebar.button("Create")
|
7 |
+
st.sidebar.button("Library")
|
8 |
+
st.sidebar.button("Explore (BETA)")
|
9 |
+
st.sidebar.markdown("---")
|
10 |
+
st.sidebar.write("2360 credits")
|
11 |
+
st.sidebar.button("Subscription")
|
12 |
+
st.sidebar.button("What's New?")
|
13 |
+
st.sidebar.button("Community")
|
14 |
+
st.sidebar.button("Help")
|
15 |
+
st.sidebar.button("About")
|
16 |
|
17 |
+
# Main content
|
18 |
st.title("Create")
|
19 |
|
20 |
# Form
|
21 |
+
st.subheader("Custom Mode")
|
22 |
+
custom_mode = st.checkbox("Custom Mode")
|
23 |
+
|
24 |
+
st.subheader("Song Description")
|
25 |
+
song_description = st.text_area("Song Description", "a futuristic anime song about a literal banana")
|
26 |
+
|
27 |
+
instrumental = st.checkbox("Instrumental")
|
28 |
+
|
29 |
+
version = st.selectbox("Version", ["v3", "v2", "v1"])
|
30 |
st.button("Create ๐ต")
|
31 |
|
32 |
+
# Song list
|
33 |
+
songs = [
|
34 |
{"title": "Dance Under The Moonlight", "description": "acoustic guitar flamenco dance beat kizomba soaring vocalist progressive house", "version": "v3"},
|
35 |
{"title": "The Tale of Yggdrasil", "description": "folk acoustic storytelling", "version": "v3"},
|
36 |
{"title": "The Song of Yggdrasil", "description": "tropical latin acoustic", "version": "v3"},
|
37 |
+
{"title": "The Song of Yggdrasil", "description": "tropical latin acoustic", "version": "v3"},
|
38 |
{"title": "Sacred Frequencies", "description": "progressive edm uplifting", "version": "v3"},
|
39 |
{"title": "Let's Get Jokin'", "description": "progressive house electronic dubstep", "version": "v3"},
|
40 |
{"title": "Jokes That Make You Dance", "description": "marching band progressive house dance", "version": "v3"},
|
41 |
{"title": "Joke Parade", "description": "progressive house dance 128bpm marching band bass drum dubstep", "version": "v3"},
|
42 |
+
{"title": "Joke Parade", "description": "progressive house dance 128bpm marching band bass drum dubstep", "version": "v3"},
|
43 |
{"title": "Laughing On The Dancefloor", "description": "128bpm progressive house dance", "version": "v3"},
|
44 |
]
|
45 |
|
46 |
+
for i, song in enumerate(songs):
|
47 |
+
st.image("https://via.placeholder.com/50", width=50) # Placeholder for song image
|
48 |
+
st.write(f"**{song['title']}**")
|
49 |
+
st.write(song['description'])
|
50 |
+
st.write(f"Version: {song['version']}")
|
51 |
+
st.button("Extend", key=f"extend_{i}")
|
52 |
+
st.checkbox("Public", key=f"public_{i}")
|
53 |
+
st.button("๐", key=f"thumbs_up_{i}")
|
54 |
+
st.button("๐", key=f"thumbs_down_{i}")
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
|
56 |
+
# Preview section
|
57 |
+
st.sidebar.markdown("---")
|
58 |
+
st.sidebar.write("Select a song to preview.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
|
61 |
|