alexrods commited on
Commit
2858cdc
·
1 Parent(s): 8c7d1d3

Update app.py

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