Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
bb11fa4
1
Parent(s):
15fb875
Update app.py
Browse files
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 =
|
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]))
|