Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
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 )
|