Merge pull request #11718 from tangjicheng46/master

fix: add queue lock for refresh-checkpoints
This commit is contained in:
AUTOMATIC1111
2023-07-10 20:40:58 +03:00
committed by GitHub

View File

@@ -593,7 +593,8 @@ class Api:
} }
def refresh_checkpoints(self): def refresh_checkpoints(self):
shared.refresh_checkpoints() with self.queue_lock:
shared.refresh_checkpoints()
def create_embedding(self, args: dict): def create_embedding(self, args: dict):
try: try: