Update app.py
Browse files
app.py
CHANGED
@@ -24,19 +24,15 @@ if file_video is not None:
|
|
24 |
sc = smartcities()
|
25 |
output = sc.predict(file_video)
|
26 |
|
27 |
-
# raw1 = st.columns(1)
|
28 |
-
# raw2 = st.columns(1)
|
29 |
if output is not None:
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
with st.container():
|
36 |
st.subheader("Output: ")
|
37 |
-
|
38 |
-
# output_bytes = output_video.read()
|
39 |
-
st.video(output, format="video/mp4")
|
40 |
st.download_button("Download", output, file_name="output_video.mp4", mime="video/mp4")
|
41 |
|
42 |
|
|
|
24 |
sc = smartcities()
|
25 |
output = sc.predict(file_video)
|
26 |
|
|
|
|
|
27 |
if output is not None:
|
28 |
+
with st.container():
|
29 |
+
st.subheader("Input: ")
|
30 |
+
video = open(file_video, "rb")
|
31 |
+
video_bytes = video.read()
|
32 |
+
st.video(video_bytes, format="video/mp4")
|
33 |
with st.container():
|
34 |
st.subheader("Output: ")
|
35 |
+
st.video(output, format="video/mp4", start_time=1)
|
|
|
|
|
36 |
st.download_button("Download", output, file_name="output_video.mp4", mime="video/mp4")
|
37 |
|
38 |
|