Update app.py
Browse files
app.py
CHANGED
|
@@ -15,19 +15,19 @@ if st.button("example"):
|
|
| 15 |
if file_video is not None:
|
| 16 |
video = open(file_video, "wb")
|
| 17 |
# output = smartcities(video)
|
| 18 |
-
|
| 19 |
-
|
| 20 |
col1, col2 = st.columns(2)
|
| 21 |
|
| 22 |
if output is not None:
|
| 23 |
with col1:
|
| 24 |
st.subheader("Input: ")
|
| 25 |
-
st.video(video)
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
|
| 32 |
|
| 33 |
|
|
|
|
| 15 |
if file_video is not None:
|
| 16 |
video = open(file_video, "wb")
|
| 17 |
# output = smartcities(video)
|
| 18 |
+
video_bytes = video.read()
|
| 19 |
+
output = smartcities(file_video)
|
| 20 |
col1, col2 = st.columns(2)
|
| 21 |
|
| 22 |
if output is not None:
|
| 23 |
with col1:
|
| 24 |
st.subheader("Input: ")
|
| 25 |
+
# st.video(video)
|
| 26 |
+
st.video(video_bytes)
|
| 27 |
+
with col2:
|
| 28 |
+
st.subheader("Output: ")
|
| 29 |
+
st.video(output)
|
| 30 |
+
st.download_button("Download", output)
|
| 31 |
|
| 32 |
|
| 33 |
|