Spaces:
Runtime error
Runtime error
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
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 |
-
|
23 |
-
with
|
24 |
-
|
25 |
-
|
|
|
|
|
|
|
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
|