Update app.py
Browse files
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 |
-
|
23 |
-
|
24 |
-
#
|
25 |
-
|
26 |
with col2:
|
27 |
st.subheader("Output: ")
|
28 |
-
|
29 |
-
|
|
|
|
|
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 |
|