alexrods commited on
Commit
79adede
·
1 Parent(s): c0c08fb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -19,14 +19,16 @@ if file_video is not None:
19
  if output is not None:
20
  with col1:
21
  st.subheader("Input: ")
22
- # video = open(file_video, "rb")
23
- # video_bytes = video.read()
24
- # # st.video(video)
25
- # st.video(video_bytes)
26
  with col2:
27
  st.subheader("Output: ")
28
- st.video(output)
29
- st.download_button("Download", output)
 
 
30
 
31
 
32
 
 
19
  if output is not None:
20
  with col1:
21
  st.subheader("Input: ")
22
+ video = open(file_video, "wb")
23
+ video_bytes = video.read()
24
+ # st.video(video)
25
+ st.video(video_bytes)
26
  with col2:
27
  st.subheader("Output: ")
28
+ output_video = open(output, "rb")
29
+ output_bytes = output_video.read()
30
+ st.video(output_bytes)
31
+ st.download_button("Download", output_bytes, mime="video/mp4")
32
 
33
 
34