Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def video_vision(video_input_path, prompt):
|
|
114 |
output_video = "output_video.mp4"
|
115 |
|
116 |
# Read the first image to get the size (resolution)
|
117 |
-
frame = cv2.imread(
|
118 |
height, width, layers = frame.shape
|
119 |
|
120 |
# Define the video codec and create VideoWriter object
|
|
|
114 |
output_video = "output_video.mp4"
|
115 |
|
116 |
# Read the first image to get the size (resolution)
|
117 |
+
frame = cv2.imread(seg_frames[0])
|
118 |
height, width, layers = frame.shape
|
119 |
|
120 |
# Define the video codec and create VideoWriter object
|