diff --git a/.gitignore b/.gitignore index 97ef17e0..61f11d9b 100644 --- a/.gitignore +++ b/.gitignore @@ -184,4 +184,6 @@ shared/* uploads -global_paths_cfg.yaml \ No newline at end of file +global_paths_cfg.yaml + +.vscode \ No newline at end of file diff --git a/api/__init__.py b/api/__init__.py index f26db6b8..0006036d 100644 --- a/api/__init__.py +++ b/api/__init__.py @@ -488,7 +488,7 @@ class LoLLMsAPPI(): #Create and launch the process self.process = ModelProcess(self.lollms_paths, config) self.binding = self.process.rebuild_binding(self.config) - + # Check model if config.model_name is None: self.menu.select_model() @@ -661,7 +661,7 @@ class LoLLMsAPPI(): def load_model(self): try: print("update_settings : New model selected") - if hasattr(self,"process"): + if hasattr(self,"process") and self.process.ready: result = self.process.set_config(self.config) if result["status"]: ASCIIColors.success("OK")