This commit is contained in:
Saifeddine ALOUI 2023-07-04 02:06:01 +02:00
parent f22353dc2a
commit 3c131ec49b
2 changed files with 5 additions and 2 deletions

View File

@ -27,20 +27,23 @@ 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:
if self.config.model_name is None:
ASCIIColors.warning(f"No model selected")
print("Please select a valid binding")
print("Please select a valid model")
self.menu.select_model()
try:
self.model = self.load_model()
except Exception as ex:
ASCIIColors.error(f"Failed to load model.\nReturned exception: {ex}")
self.model = None
else:
self.binding = None
self.model = None
self.mount_personalities()

View File

@ -26,7 +26,7 @@ def get_all_files(path):
setuptools.setup(
name="lollms",
version="2.1.16",
version="2.1.17",
author="Saifeddine ALOUI",
author_email="aloui.saifeddine@gmail.com",
description="A python library for AI personality definition",