Update app.py
Browse files
app.py
CHANGED
@@ -13,15 +13,14 @@ if st.button("example"):
|
|
13 |
|
14 |
## Process video
|
15 |
if file_video is not None:
|
16 |
-
|
17 |
-
|
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)
|
27 |
with col2:
|
|
|
13 |
|
14 |
## Process video
|
15 |
if file_video is not None:
|
16 |
+
sc = smartcities()
|
17 |
+
output = sc.predict(file_video)
|
|
|
|
|
18 |
col1, col2 = st.columns(2)
|
19 |
|
20 |
if output is not None:
|
21 |
with col1:
|
22 |
st.subheader("Input: ")
|
23 |
+
video = open(file_video, "wb")
|
24 |
# st.video(video)
|
25 |
st.video(video)
|
26 |
with col2:
|