Jon Taylor commited on
Commit
5130316
1 Parent(s): f66623b

moved buffer into loop

Browse files
Files changed (1) hide show
  1. app/bot.py +2 -2
app/bot.py CHANGED
@@ -120,9 +120,9 @@ class DailyVision(EventHandler):
120
 
121
  if self.__params_buffer:
122
  print("New buffer params found")
123
- params = self.__pipeline.InputParams(**self.__params_buffer)
124
  self.__params_buffer = None
125
-
126
  if not video_frame == None:
127
  image = Image.frombytes("RGB", (video_frame.width, video_frame.height), video_frame.buffer)
128
  result_image = self.__pipeline.predict(params, image)
 
120
 
121
  if self.__params_buffer:
122
  print("New buffer params found")
123
+ params = self.__pipeline.InputParams(self.__params_buffer)
124
  self.__params_buffer = None
125
+
126
  if not video_frame == None:
127
  image = Image.frombytes("RGB", (video_frame.width, video_frame.height), video_frame.buffer)
128
  result_image = self.__pipeline.predict(params, image)