add queue lock for refresh-checkpoints

This commit is contained in:
tangjicheng 2023-07-10 23:10:14 +09:00
parent 394ffa7b0a
commit 089a0022ae
1 changed files with 2 additions and 1 deletions

View File

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