mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-01-19 03:06:37 +00:00
enhanced
This commit is contained in:
parent
3c131ec49b
commit
7544c3a454
@ -27,11 +27,11 @@ class LollmsApplication:
|
||||
|
||||
try:
|
||||
self.binding = self.load_binding()
|
||||
ASCIIColors.success(f"Binding {self.config.binding_name} loaded successfully.")
|
||||
except Exception as ex:
|
||||
ASCIIColors.error(f"Failed to load binding.\nReturned exception: {ex}")
|
||||
|
||||
if self.binding is not None:
|
||||
ASCIIColors.success(f"Binding {self.config.binding_name} loaded successfully.")
|
||||
if self.config.model_name is None:
|
||||
ASCIIColors.warning(f"No model selected")
|
||||
print("Please select a valid model")
|
||||
@ -42,6 +42,7 @@ class LollmsApplication:
|
||||
ASCIIColors.error(f"Failed to load model.\nReturned exception: {ex}")
|
||||
self.model = None
|
||||
else:
|
||||
ASCIIColors.warning(f"Couldn't load binding {self.config.binding_name}.")
|
||||
self.binding = None
|
||||
self.model = None
|
||||
self.mount_personalities()
|
||||
|
Loading…
Reference in New Issue
Block a user