Pinwheel commited on
Commit
b80bbba
1 Parent(s): 5686c54

Update app.py

Browse files

Testing webcam

Files changed (1) hide show
  1. app.py +2 -0
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: