Update lollms_personalities_infos.py

This commit is contained in:
Saifeddine ALOUI 2024-05-03 16:35:48 +02:00 committed by GitHub
parent 8ef6f84939
commit 6553ea24e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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