alfraser commited on
Commit
c3c8ce3
1 Parent(s): a17e065

Added handling for the video overview presentation not being available, in order to avoid an issue in the submission to the university (including the video in the overall makes the submission go over the 50MB file limit).

Browse files
Files changed (1) hide show
  1. Home.py +7 -4
Home.py CHANGED
@@ -19,10 +19,13 @@ if st_setup("LLM Architecture Assessment", skip_login=True):
19
 
20
  # Place the video centred, but surrounded as a workaround to being able to specify the size
21
  left, center, right = st.columns([2, 3, 2])
22
- with center:
23
- with open('img/overview_presentation.m4v', 'rb') as f:
24
- video_bytes = f.read()
25
- st.video(video_bytes)
 
 
 
26
 
27
  st.write("""
28
  ## Tools
 
19
 
20
  # Place the video centred, but surrounded as a workaround to being able to specify the size
21
  left, center, right = st.columns([2, 3, 2])
22
+ try:
23
+ with center:
24
+ with open('img/overview_presentation.m4v', 'rb') as f:
25
+ video_bytes = f.read()
26
+ st.video(video_bytes)
27
+ except:
28
+ st.info("Overview presentation video not available")
29
 
30
  st.write("""
31
  ## Tools