From 6553ea24e1dfb622e9565811b679280696db1e60 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Fri, 3 May 2024 16:35:48 +0200 Subject: [PATCH] Update lollms_personalities_infos.py --- lollms/server/endpoints/lollms_personalities_infos.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lollms/server/endpoints/lollms_personalities_infos.py b/lollms/server/endpoints/lollms_personalities_infos.py index 3af68bd..9ab2ca0 100644 --- a/lollms/server/endpoints/lollms_personalities_infos.py +++ b/lollms/server/endpoints/lollms_personalities_infos.py @@ -571,6 +571,8 @@ def select_personality(data:PersonalitySelectionInfos): print(f"Selected {lollmsElfServer.personality.name}") language = lollmsElfServer.config.current_language + if lollmsElfServer.personality.language is None: + lollmsElfServer.personality.language = "english" default_language = lollmsElfServer.personality.language.lower().strip().split()[0] if language != default_language: