alexrods commited on
Commit
9779b74
·
1 Parent(s): 7565178

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
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
- # with st.container():
31
- # st.subheader("Input: ")
32
- # video = open(file_video, "rb")
33
- # video_bytes = video.read()
34
- # st.video(video_bytes, format="video/mp4")
35
  with st.container():
36
  st.subheader("Output: ")
37
- # output_video = open(output, "rb")
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