Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ def main_page(furniture_data):
|
|
| 74 |
key = f"{selected_category}_{attribute}" # Unique key combining category and attribute
|
| 75 |
selected_options[attribute] = st.multiselect(f'Choose {attribute}', options, key=key)
|
| 76 |
|
| 77 |
-
if st.button('Show
|
| 78 |
# Assuming images_data is loaded from your JSON file
|
| 79 |
images_data = load_images() # Make sure this function is defined and loads your images data
|
| 80 |
videos_data = load_videos()
|
|
@@ -122,7 +122,7 @@ def main_page(furniture_data):
|
|
| 122 |
</style>
|
| 123 |
"""
|
| 124 |
if source_video and source_video in videos_data:
|
| 125 |
-
with st.expander(f"Show Metadata
|
| 126 |
video_metadata = videos_data[source_video]
|
| 127 |
# Convert the metadata dictionary to a DataFrame
|
| 128 |
metadata_df = pd.DataFrame(video_metadata.items(), columns=['Attribute', 'Value'])
|
|
|
|
| 74 |
key = f"{selected_category}_{attribute}" # Unique key combining category and attribute
|
| 75 |
selected_options[attribute] = st.multiselect(f'Choose {attribute}', options, key=key)
|
| 76 |
|
| 77 |
+
if st.button('Show Trends'):
|
| 78 |
# Assuming images_data is loaded from your JSON file
|
| 79 |
images_data = load_images() # Make sure this function is defined and loads your images data
|
| 80 |
videos_data = load_videos()
|
|
|
|
| 122 |
</style>
|
| 123 |
"""
|
| 124 |
if source_video and source_video in videos_data:
|
| 125 |
+
with st.expander(f"Show Metadata"):
|
| 126 |
video_metadata = videos_data[source_video]
|
| 127 |
# Convert the metadata dictionary to a DataFrame
|
| 128 |
metadata_df = pd.DataFrame(video_metadata.items(), columns=['Attribute', 'Value'])
|