mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-01 00:45:29 +00:00
Update lollms_personalities_infos.py
This commit is contained in:
parent
b3263e6e2a
commit
59ec63a55d
@ -84,7 +84,7 @@ def get_all_personalities():
|
||||
try:
|
||||
scripts_path = personality_folder / 'scripts'
|
||||
personality_info['has_scripts'] = scripts_path.exists()
|
||||
with open(config_path) as config_file:
|
||||
with open(config_path, "r", encoding="utf8") as config_file:
|
||||
config_data = yaml.load(config_file, Loader=yaml.FullLoader)
|
||||
personality_info['name'] = config_data.get('name',"No Name")
|
||||
personality_info['description'] = config_data.get('personality_description',"")
|
||||
|
Loading…
x
Reference in New Issue
Block a user