gkdivya commited on
Commit
411e2bf
·
1 Parent(s): 2fa9e1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -88,12 +88,14 @@ def main_page(furniture_data):
88
 
89
  if filtered_images:
90
  for image_name in filtered_images:
91
- st.image('./images/'+image_name, width=300) # Adjust width as needed
92
 
93
  source_video = images_data[image_name].get("source_video")
 
94
  if source_video and source_video in videos_data:
95
  with st.expander(f"Show Metadata for {image_name}"):
96
  video_metadata = videos_data[source_video]
 
97
  # Convert the metadata dictionary to a list of lists for st.table
98
  metadata_for_table = [[key, value] for key, value in video_metadata.items()]
99
  st.table(metadata_for_table)
 
88
 
89
  if filtered_images:
90
  for image_name in filtered_images:
91
+ st.image('./images/'+image_name, width=150)
92
 
93
  source_video = images_data[image_name].get("source_video")
94
+ print(source_video)
95
  if source_video and source_video in videos_data:
96
  with st.expander(f"Show Metadata for {image_name}"):
97
  video_metadata = videos_data[source_video]
98
+ print(video_metadata)
99
  # Convert the metadata dictionary to a list of lists for st.table
100
  metadata_for_table = [[key, value] for key, value in video_metadata.items()]
101
  st.table(metadata_for_table)