awacke1 commited on
Commit
f4d39b3
1 Parent(s): 3bae00e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -566,10 +566,11 @@ def display_videos_and_links():
566
  for video_file in video_files_sorted:
567
  with cols[col_index % 2]: # Use modulo 2 to alternate between the first and second column
568
  # Embedding video with autoplay and loop using HTML
569
- video_html = ("""<video width="100%" loop autoplay> <source src="{video_file}" type="video/mp4">Your browser does not support the video tag.</video>""")
570
- st.markdown(video_html, unsafe_allow_html=True)
571
  k = video_file.split('.')[0] # Assumes keyword is the file name without extension
572
- display_glossary_entity(k) # Assuming this is defined elsewhere
 
573
  col_index += 1 # Increment column index to place the next video in the next column
574
 
575
 
 
566
  for video_file in video_files_sorted:
567
  with cols[col_index % 2]: # Use modulo 2 to alternate between the first and second column
568
  # Embedding video with autoplay and loop using HTML
569
+ #video_html = ("""<video width="100%" loop autoplay> <source src="{video_file}" type="video/mp4">Your browser does not support the video tag.</video>""")
570
+ #st.markdown(video_html, unsafe_allow_html=True)
571
  k = video_file.split('.')[0] # Assumes keyword is the file name without extension
572
+ st.video(video_file, format='video/mp4', start_time=0)
573
+ display_glossary_entity(k)
574
  col_index += 1 # Increment column index to place the next video in the next column
575
 
576