mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-04-10 20:29:54 +00:00
added personality copy to custom folder
This commit is contained in:
parent
8e0acd3515
commit
c7abab41ee
@ -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 ------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user