BertChristiaens commited on
Commit
04b1201
1 Parent(s): be0162b

add waiting queue

Browse files
Files changed (1) hide show
  1. models.py +1 -1
models.py CHANGED
@@ -58,9 +58,9 @@ class ControlNetPipeline:
58
 
59
  # it's your turn, so remove the number from the queue
60
  # and call the function
61
- self.waiting_queue.pop(0)
62
  print("It's the turn of", self.count)
63
  return self.pipe(**kwargs)
 
64
 
65
 
66
  @contextmanager
 
58
 
59
  # it's your turn, so remove the number from the queue
60
  # and call the function
 
61
  print("It's the turn of", self.count)
62
  return self.pipe(**kwargs)
63
+ self.waiting_queue.pop(0)
64
 
65
 
66
  @contextmanager