mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 12:26:30 +00:00
make start faster
This commit is contained in:
@@ -32,10 +32,10 @@ cdef class CommandProcessor:
|
||||
self.inference_queue = Queue(maxsize=constants.QUEUE_MAXSIZE)
|
||||
self.remote_handler.start()
|
||||
self.running = True
|
||||
model = self.api_client.load_ai_model()
|
||||
self.inference = Inference(model, self.on_annotation)
|
||||
self.inference = Inference(self.api_client, self.on_annotation)
|
||||
|
||||
def start(self):
|
||||
print('Started!')
|
||||
while self.running:
|
||||
try:
|
||||
command = self.inference_queue.get(timeout=0.5)
|
||||
|
||||
Reference in New Issue
Block a user