gkdivya commited on
Commit
b0b23e6
·
1 Parent(s): e0a8f2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 Filtered Images'):
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 for {image_name}"):
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'])