Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -134,7 +134,7 @@ def process_video(video_path):
|
|
134 |
while cap.isOpened():
|
135 |
ret, frame = cap.read()
|
136 |
if not ret:
|
137 |
-
|
138 |
|
139 |
pil_img = Image.fromarray(frame[..., ::-1])
|
140 |
result = model.predict(source=pil_img)
|
|
|
134 |
while cap.isOpened():
|
135 |
ret, frame = cap.read()
|
136 |
if not ret:
|
137 |
+
break
|
138 |
|
139 |
pil_img = Image.fromarray(frame[..., ::-1])
|
140 |
result = model.predict(source=pil_img)
|