added personality copy to custom folder

This commit is contained in:
Saifeddine ALOUI 2024-02-28 23:26:25 +01:00
parent 8e0acd3515
commit c7abab41ee

View File

@ -582,7 +582,7 @@ async def copy_to_custom_personas(data: PersonalityInfos):
else:
personality_folder = lollmsElfServer.lollms_paths.personalities_zoo_path/f"{category}"/f"{name}"
destination_folder = lollmsElfServer.lollms_paths.custom_personalities_path
shutil.copytree(personality_folder, destination_folder)
shutil.copytree(personality_folder, destination_folder/f"{name}")
return {"status":True}
# ------------------------------------------- Interaction with personas ------------------------------------------------