pn23 commited on
Commit
5d6d140
·
verified ·
1 Parent(s): bda651b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -29,10 +29,19 @@ if uploaded_file is not None:
29
  if cv.waitKey(1) == ord('q'):
30
  break
31
 
 
 
 
 
 
 
32
  cv2.destroyAllWindows()
33
  output.release()
34
  cap.release()
35
 
 
 
 
36
 
37
  # @st.cache(allow_output_mutation=True)
38
  # def get_cap(location):
 
29
  if cv.waitKey(1) == ord('q'):
30
  break
31
 
32
+
33
+ # st.download_button(
34
+ # label="Download Processed Video",
35
+ # data=csv,
36
+ # file_name='output.mp4')
37
+
38
  cv2.destroyAllWindows()
39
  output.release()
40
  cap.release()
41
 
42
+ with open('output.mp4', 'wb') as f:
43
+ st.download_button('Download Video', f, file_name='output.mp4')
44
+
45
 
46
  # @st.cache(allow_output_mutation=True)
47
  # def get_cap(location):