diff --git a/modules/api/api.py b/modules/api/api.py index 2e49526e..7f7e3a9b 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -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: