From 26d736b6b41442b18b859aba4e25a555341a8a2f Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Tue, 5 Nov 2024 02:20:51 +0100 Subject: [PATCH] fixed language bug --- lollms/server/endpoints/lollms_personalities_infos.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lollms/server/endpoints/lollms_personalities_infos.py b/lollms/server/endpoints/lollms_personalities_infos.py index bc195a6..d71f3c6 100644 --- a/lollms/server/endpoints/lollms_personalities_infos.py +++ b/lollms/server/endpoints/lollms_personalities_infos.py @@ -67,8 +67,8 @@ def get_personality(): ASCIIColors.yellow("Getting current personality") personality = lollmsElfServer.personality - real_assets_path = lollmsElfServer.lollms_paths.personalities_zoo_path / personality.category / personality.name / 'assets' - assets_path = Path("personalities") / personality.category / personality.name / 'assets' + real_assets_path = lollmsElfServer.lollms_paths.personalities_zoo_path / personality.category / personality.personality_folder_name / 'assets' + assets_path = Path("personalities") / personality.category / personality.personality_folder_name / 'assets' gif_logo_path = assets_path / 'logo.gif' webp_logo_path = assets_path / 'logo.webp' png_logo_path = assets_path / 'logo.png' @@ -138,8 +138,8 @@ def get_all_personalities(): if lollmsElfServer.personality.personality_folder_name==pers: personality = lollmsElfServer.personality - real_assets_path = lollmsElfServer.lollms_paths.personalities_zoo_path / personality.category / personality.name / 'assets' - assets_path = Path("personalities") / personality.category / personality.name / 'assets' + real_assets_path = lollmsElfServer.lollms_paths.personalities_zoo_path / personality.category / personality.personality_folder_name / 'assets' + assets_path = Path("personalities") / personality.category / personality.personality_folder_name / 'assets' gif_logo_path = assets_path / 'logo.gif' webp_logo_path = assets_path / 'logo.webp' png_logo_path = assets_path / 'logo.png'