This commit is contained in:
saloui 2023-05-22 16:27:29 +02:00
parent f0d736abff
commit 0b48b3ad72
2 changed files with 6 additions and 4 deletions

4
.gitignore vendored
View File

@ -175,4 +175,6 @@ outputs
./src
# ignore installation files
.installed
.installed
test.http

6
app.py
View File

@ -252,9 +252,9 @@ class Gpt4AllWebUI(GPT4AllAPI):
with open(config_path) as config_file:
config_data = yaml.load(config_file, Loader=yaml.FullLoader)
personality_info['name'] = personality_folder.name
personality_info['description'] = config_data['personality_description']
personality_info['author'] = 'ParisNeo'#config_data['creator']
personality_info['version'] = config_data['version']
personality_info['description'] = config_data.get('personality_description',"")
personality_info['author'] = config_data.get('creator', 'ParisNeo')
personality_info['version'] = config_data.get('version', '1.0.0')
scripts_path = personality_folder / 'scripts'
personality_info['has_scripts'] = scripts_path.is_dir()
assets_path = personality_folder / 'assets'