GDavila commited on
Commit
8f712b0
·
1 Parent(s): f03fd32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -103,5 +103,7 @@ if user_image_object is not None:
103
  '''HuggingFaces Spaces can create a video vile ephemerally but doesn't actually save one that we can access.
104
  So to show the video/gif we save it as a file then open that file to show it in streamlit'''
105
 
106
- cap = cv2.VideoCapture('outputvideo.mp4')
 
 
107
  st.video(cap )
 
103
  '''HuggingFaces Spaces can create a video vile ephemerally but doesn't actually save one that we can access.
104
  So to show the video/gif we save it as a file then open that file to show it in streamlit'''
105
 
106
+
107
+ video_file = open('outputvideo.mp4', 'rb')
108
+ video_bytes = video_file.read()
109
  st.video(cap )