Spaces:
Runtime error
Runtime error
Update app.py
Browse filesTesting webcam
app.py
CHANGED
@@ -51,6 +51,8 @@ def predict_video(video, object, question, frame_drop_value):
|
|
51 |
print("TimeStamp {}".format(dt_string))
|
52 |
vid = cv2.VideoCapture(video)
|
53 |
count = 0
|
|
|
|
|
54 |
while True:
|
55 |
ret, frame = vid.read()
|
56 |
if ret:
|
|
|
51 |
print("TimeStamp {}".format(dt_string))
|
52 |
vid = cv2.VideoCapture(video)
|
53 |
count = 0
|
54 |
+
result = None
|
55 |
+
answer = None
|
56 |
while True:
|
57 |
ret, frame = vid.read()
|
58 |
if ret:
|