Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -100,4 +100,8 @@ if user_image_object is not None:
|
|
100 |
out.write(img_array[i])
|
101 |
out.release()
|
102 |
|
103 |
-
|
|
|
|
|
|
|
|
|
|
100 |
out.write(img_array[i])
|
101 |
out.release()
|
102 |
|
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 )
|