Ahsen Khaliq commited on
Commit
bb11fa4
1 Parent(s): 15fb875

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def inference(video, text):
27
  # Read the current frame
28
  ret, frame = capture.read()
29
  while ret:
30
- ret,frame = vidcap.read()
31
  print('Read a new frame: ', ret)
32
  current_frame += 1
33
  video_frames.append(Image.fromarray(frame[:, :, ::-1]))
 
27
  # Read the current frame
28
  ret, frame = capture.read()
29
  while ret:
30
+ ret,frame = capture.read()
31
  print('Read a new frame: ', ret)
32
  current_frame += 1
33
  video_frames.append(Image.fromarray(frame[:, :, ::-1]))