diff --git a/ui/server.py b/ui/server.py index 1988cab2..58acda6c 100644 --- a/ui/server.py +++ b/ui/server.py @@ -53,7 +53,7 @@ class RenderTask(): # Task with output queue and completion lock. def __init__(self, req: Request): self.request: Request = req # Initial Request self.response: Any = None # Copy of the last reponse - self.temp_images:[] = [None] * req.num_outputs + self.temp_images:[] = [None] * req.num_outputs * (1 if req.show_only_filtered_image else 2) self.error: Exception = None self.lock: threading.Lock = threading.Lock() # Locks at task start and unlocks when task is completed self.buffer_queue: queue.Queue = queue.Queue() # Queue of JSON string segments