awacke1 commited on
Commit
65297c2
ยท
verified ยท
1 Parent(s): 0351346

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +38 -46
app.py CHANGED
@@ -1,69 +1,61 @@
1
  import streamlit as st
2
 
3
  # Sidebar
4
- st.sidebar.image("https://via.placeholder.com/150", width=150) # Placeholder for logo
5
- st.sidebar.markdown("## Home")
6
- st.sidebar.markdown("## Create")
7
- st.sidebar.markdown("## Library")
8
- st.sidebar.markdown("## Explore")
9
- st.sidebar.markdown("## 2360 credits")
10
- st.sidebar.markdown("## Subscription")
11
- st.sidebar.markdown("## What's New")
12
- st.sidebar.markdown("## Community")
13
- st.sidebar.markdown("## Help")
14
- st.sidebar.markdown("## About")
 
15
 
16
- # Main Content Area
17
  st.title("Create")
18
 
19
  # Form
20
- st.checkbox("Custom Mode")
21
- st.text_area("Song Description", "a futuristic anime song about a literal banana")
22
- st.checkbox("Instrumental")
23
- st.selectbox("Version", ["v3"])
 
 
 
 
 
24
  st.button("Create ๐ŸŽต")
25
 
26
- # List of items
27
- items = [
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 item in items:
39
- st.image("https://via.placeholder.com/50", width=50) # Placeholder for image
40
- st.markdown(f"### {item['title']} v{item['version']}")
41
- st.markdown(f"{item['description']}")
42
- col1, col2, col3, col4, col5 = st.columns([1, 1, 1, 1, 1])
43
- with col1:
44
- st.button("๐Ÿ‘")
45
- with col2:
46
- st.button("๐Ÿ‘Ž")
47
- with col3:
48
- st.button("Extend")
49
- with col4:
50
- st.checkbox("Public")
51
- with col5:
52
- st.button("๐Ÿ”—")
53
 
54
- # Footer
55
- st.markdown("---")
56
- col1, col2, col3, col4, col5 = st.columns([1, 1, 1, 1, 1])
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