add queue lock for refresh-checkpoints

This commit is contained in:
tangjicheng 2023-07-10 23:10:14 +09:00
parent 394ffa7b0a
commit 089a0022ae

View File

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