GDavila commited on
Commit
f03fd32
·
1 Parent(s): 6f7b676

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- st.video('outputvideo.mp4')
 
 
 
 
 
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 )