Spaces:
Runtime error
Runtime error
Update pages/1_📷️_Live_Stream.py
Browse files
pages/1_📷️_Live_Stream.py
CHANGED
|
@@ -35,6 +35,9 @@ pose = get_mediapipe_pose()
|
|
| 35 |
|
| 36 |
output_video_file = f'output_live.flv'
|
| 37 |
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
def video_frame_callback(frame: av.VideoFrame):
|
| 40 |
frame = frame.to_ndarray(format="rgb24") # Decode and get RGB frame
|
|
|
|
| 35 |
|
| 36 |
output_video_file = f'output_live.flv'
|
| 37 |
|
| 38 |
+
if os.path.exists(output_video_file):
|
| 39 |
+
os.remove(output_video_file)
|
| 40 |
+
|
| 41 |
|
| 42 |
def video_frame_callback(frame: av.VideoFrame):
|
| 43 |
frame = frame.to_ndarray(format="rgb24") # Decode and get RGB frame
|