Fixed avatars problem

This commit is contained in:
Saifeddine ALOUI 2024-11-10 21:44:19 +01:00
parent 662dc241bb
commit 63b0938878

View File

@ -138,7 +138,7 @@ def get_all_personalities():
if lollmsElfServer.personality.personality_folder_name==pers:
personality = lollmsElfServer.personality
lollmsElfServer.lollms_paths.custom_personalities_path
real_assets_path = lollmsElfServer.lollms_paths.personalities_zoo_path / personality.personality_folder_name / 'assets'
real_assets_path = lollmsElfServer.lollms_paths.personalities_zoo_path / cat / personality.personality_folder_name / 'assets'
category = personality.category if category_folder!=lollmsElfServer.lollms_paths.custom_personalities_path!=category_folder else "custom_personalities"
assets_path = Path("personalities") / category / personality.personality_folder_name / 'assets'
gif_logo_path = assets_path / 'logo.gif'