From ca59c0f5af75a3253a5f8f2aa830a0fb4561ad08 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI <aloui.seifeddine@gmail.com> Date: Sun, 18 Jun 2023 22:27:19 +0200 Subject: [PATCH] bugfix --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index e92234bc..a2e64aee 100644 --- a/app.py +++ b/app.py @@ -74,7 +74,8 @@ class LoLLMsWebUI(LoLLMsAPPI): self.cancel_gen = False app.template_folder = "web/dist" - + if config["active_personality_id"]>=len(config["personalities"]): + config["active_personality_id"] = 0 self.personality_language= config["personalities"][config["active_personality_id"]].split("/")[0] self.personality_category= config["personalities"][config["active_personality_id"]].split("/")[1] self.personality_name= config["personalities"][config["active_personality_id"]].split("/")[2]