Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,6 @@ st.markdown("Upload a video or select the example")
|
|
7 |
|
8 |
## Select video to inference
|
9 |
file_video = st.file_uploader(" Upload a video ", type=["mp4"])
|
10 |
-
# st.video(example)
|
11 |
if st.button("example"):
|
12 |
file_video = "test_video.mp4"
|
13 |
|
@@ -20,9 +19,10 @@ if file_video is not None:
|
|
20 |
if output is not None:
|
21 |
with col1:
|
22 |
st.subheader("Input: ")
|
23 |
-
video = open(file_video, "
|
24 |
-
#
|
25 |
-
st.video(video)
|
|
|
26 |
with col2:
|
27 |
st.subheader("Output: ")
|
28 |
st.video(output)
|
|
|
7 |
|
8 |
## Select video to inference
|
9 |
file_video = st.file_uploader(" Upload a video ", type=["mp4"])
|
|
|
10 |
if st.button("example"):
|
11 |
file_video = "test_video.mp4"
|
12 |
|
|
|
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)
|