Spaces:
Runtime error
Runtime error
Update pages/2_ ⬆️_Upload_Video.py
Browse files
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'])
|