gkdivya commited on
Commit
bfa4234
·
1 Parent(s): 717955f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -96,10 +96,9 @@ def main_page(furniture_data):
96
  if source_video and source_video in videos_data:
97
  with st.expander(f"Show Metadata for {image_name}"):
98
  video_metadata = videos_data[source_video]
99
- print(video_metadata)
100
- # Convert the metadata dictionary to a list of lists for st.table
101
- metadata_for_table = [[key, value] for key, value in video_metadata.items()]
102
- st.table(metadata_for_table)
103
 
104
  else:
105
  st.write("Not Trending")
 
96
  if source_video and source_video in videos_data:
97
  with st.expander(f"Show Metadata for {image_name}"):
98
  video_metadata = videos_data[source_video]
99
+ # Convert the metadata dictionary to a DataFrame
100
+ metadata_df = pd.DataFrame(video_metadata.items(), columns=['Attribute', 'Value'])
101
+ st.table(metadata_df)
 
102
 
103
  else:
104
  st.write("Not Trending")