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