Kunal7 commited on
Commit
5ef7eaa
·
1 Parent(s): fe361d0

Update pages/2_ ⬆️_Upload_Video.py

Browse files
Files changed (1) hide show
  1. pages/2_ ⬆️_Upload_Video.py +3 -0
pages/2_ ⬆️_Upload_Video.py CHANGED
@@ -40,6 +40,9 @@ pose = get_mediapipe_pose()
40
 
41
  output_video_file = f'output_recorded.mp4'
42
 
 
 
 
43
 
44
  with st.form('Upload', clear_on_submit=True):
45
  up_file = st.file_uploader("Upload a Video", ['mp4','mov', 'avi'])
 
40
 
41
  output_video_file = f'output_recorded.mp4'
42
 
43
+ if os.path.exists(output_video_file):
44
+ os.remove(output_video_file)
45
+
46
 
47
  with st.form('Upload', clear_on_submit=True):
48
  up_file = st.file_uploader("Upload a Video", ['mp4','mov', 'avi'])