Dricz commited on
Commit
381f849
1 Parent(s): 4d2ba31

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- breakformat
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)