From 405f1110790ab26fb3c89d1eca995d89ac9d3895 Mon Sep 17 00:00:00 2001 From: saloui Date: Fri, 9 Jun 2023 14:24:24 +0200 Subject: [PATCH] bugfix --- app.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index f22069b7..da766ac0 100644 --- a/app.py +++ b/app.py @@ -690,14 +690,15 @@ class LoLLMsWebUI(LoLLMsAPPI): package_path = f"{language}/{category}/{name}" package_full_path = lollms_path/"personalities_zoo"/package_path config_file = package_full_path / "config.yaml" - if not config_file.exists(): - self.config["personalities"].append() + if config_file.exists(): + self.config["personalities"].append(package_path) self.personalities = self.process.rebuild_personalities() self.personality = self.personalities[self.config["active_personality_id"]] self.apply_settings() return jsonify({"status": True}) else: - return jsonify({"status": False, "error":"Personality not found"}) + pth = str(config_file).replace('\\','/') + return jsonify({"status": False, "error":f"Personality not found @ {pth}"}) def unmount_personality(self): print("- Unmounting personality")