Update app.py

This commit is contained in:
Saifeddine ALOUI 2023-12-14 15:24:49 +01:00 committed by GitHub
parent dcd80a126c
commit 16d535ab8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,7 +248,7 @@ class LollmsApplication(LoLLMsCom):
if personality is not None: if personality is not None:
personality.model = model personality.model = model
except Exception as ex: except Exception as ex:
self.notify("Couldn't load model.", False) self.error("Couldn't load model.")
ASCIIColors.error(f"Couldn't load model. Please verify your configuration file at {self.lollms_paths.personal_configuration_path} or use the next menu to select a valid model") ASCIIColors.error(f"Couldn't load model. Please verify your configuration file at {self.lollms_paths.personal_configuration_path} or use the next menu to select a valid model")
ASCIIColors.error(f"Binding returned this exception : {ex}") ASCIIColors.error(f"Binding returned this exception : {ex}")
trace_exception(ex) trace_exception(ex)