sync and language fix

This commit is contained in:
Saifeddine ALOUI 2024-05-04 17:12:48 +02:00
parent b675eff885
commit ddaba8c0b8
3 changed files with 3 additions and 5 deletions

View File

@ -73,11 +73,9 @@ def add_events(sio:socketio):
if not language_path.exists():
lollmsElfServer.ShowBlockingMessage(f"This is the first time this personality speaks {current_language}\nLollms is reconditionning the persona in that language.\nThis will be done just once. Next time, the personality will speak {current_language} out of the box")
language_path.parent.mkdir(exist_ok=True, parents=True)
# Translating
conditionning = lollmsElfServer.tasks_library.translate_conditionning(lollmsElfServer.personality._personality_conditioning, lollmsElfServer.personality.language, current_language)
welcome_message = lollmsElfServer.tasks_library.translate_message(lollmsElfServer.personality.welcome_message, lollmsElfServer.personality.language, current_language)
with open(language_path,"w",encoding="utf-8", errors="ignore") as f:
yaml.safe_dump({"conditionning":conditionning,"welcome_message":welcome_message}, f)
lollmsElfServer.HideBlockingMessage()

@ -1 +1 @@
Subproject commit c5dd60732def7a91f7cf97c905c08cd5eef8a099
Subproject commit 535ff5785fe1694e14d87f741113994fbfd0dda6

@ -1 +1 @@
Subproject commit 9c94ca85df80abb1fafc6ae9fb142f3a6c7ce2ab
Subproject commit 8235940fed978ac7001c30a8eb38423a5fc56a2f