This commit is contained in:
Saifeddine ALOUI 2023-07-04 02:21:54 +02:00
parent 3c131ec49b
commit 7544c3a454

View File

@ -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()