awacke1 commited on
Commit
ed3fdb6
·
1 Parent(s): 8bc6917

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
  import base64
3
  import time
4
 
5
- #@st.cache_resource
6
  def Base64CacheIt(filename):
7
  # Read the video file as bytes
8
  with open(filename, "rb") as file:
@@ -18,7 +18,6 @@ def Base64CacheIt(filename):
18
  Your browser does not support the video element.
19
  </video>
20
  """
21
-
22
  return video_html
23
 
24
  # Set page layout to wide screen
@@ -27,6 +26,6 @@ st.set_page_config(layout="wide")
27
  video_placeholder = st.empty()
28
  video_html = Base64CacheIt("Walking on Bourbon Street.mp4")
29
 
30
- video_placeholder.empty()
31
- time.sleep(5)
32
  video_placeholder.markdown(video_html, unsafe_allow_html=True)
 
2
  import base64
3
  import time
4
 
5
+ @st.cache_resource
6
  def Base64CacheIt(filename):
7
  # Read the video file as bytes
8
  with open(filename, "rb") as file:
 
18
  Your browser does not support the video element.
19
  </video>
20
  """
 
21
  return video_html
22
 
23
  # Set page layout to wide screen
 
26
  video_placeholder = st.empty()
27
  video_html = Base64CacheIt("Walking on Bourbon Street.mp4")
28
 
29
+ #video_placeholder.empty()
30
+ #time.sleep(5)
31
  video_placeholder.markdown(video_html, unsafe_allow_html=True)