This commit is contained in:
Saifeddine ALOUI 2023-06-18 22:27:19 +02:00
parent c4b1f797fe
commit ca59c0f5af

3
app.py
View File

@ -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]