gkdivya commited on
Commit
2fb9655
·
1 Parent(s): e672d37

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +41 -0
app.py ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ # Custom CSS to style the buttons
4
+ st.markdown("""
5
+ <style>
6
+ .streamlit-button { background-color: #0052CC; color: white; }
7
+ </style>
8
+ """, unsafe_allow_html=True)
9
+
10
+ # Function to display the main page
11
+ def main_page():
12
+ st.title("Trending TikTok Furniture Showcase")
13
+
14
+ brand = st.selectbox('Select Brand', ['IKEA', 'Wayfair', 'Ashley Furniture'])
15
+ color = st.multiselect('Select Color', ['Red', 'Blue', 'Green'])
16
+ pattern = st.multiselect('Select Pattern', ['Floral', 'Striped', 'Solid'])
17
+
18
+ if st.button('Show Trending TikToks'):
19
+ st.write("Display trending TikTok images here...")
20
+ # Here you would add the code to display TikTok images
21
+ # and links to their videos (considering API availability and legal compliance)
22
+
23
+ # Function to display the TikTok video page
24
+ def tiktok_video_page():
25
+ st.title("TikTok Video and Metadata")
26
+
27
+ # Placeholder for TikTok video and metadata
28
+ st.video("URL_of_the_TikTok_video")
29
+ st.write("Metadata of the TikTok video...")
30
+
31
+ if st.button('Go back'):
32
+ main_page()
33
+
34
+ # Main app logic
35
+ if 'page' not in st.session_state:
36
+ st.session_state.page = 'main'
37
+
38
+ if st.session_state.page == 'main':
39
+ main_page()
40
+ elif st.session_state.page == 'tiktok_video':
41
+ tiktok_video_page()