mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-24 06:36:37 +00:00
Working
This commit is contained in:
parent
f0d736abff
commit
0b48b3ad72
2
.gitignore
vendored
2
.gitignore
vendored
@ -176,3 +176,5 @@ outputs
|
|||||||
|
|
||||||
# ignore installation files
|
# ignore installation files
|
||||||
.installed
|
.installed
|
||||||
|
|
||||||
|
test.http
|
6
app.py
6
app.py
@ -252,9 +252,9 @@ class Gpt4AllWebUI(GPT4AllAPI):
|
|||||||
with open(config_path) as config_file:
|
with open(config_path) as config_file:
|
||||||
config_data = yaml.load(config_file, Loader=yaml.FullLoader)
|
config_data = yaml.load(config_file, Loader=yaml.FullLoader)
|
||||||
personality_info['name'] = personality_folder.name
|
personality_info['name'] = personality_folder.name
|
||||||
personality_info['description'] = config_data['personality_description']
|
personality_info['description'] = config_data.get('personality_description',"")
|
||||||
personality_info['author'] = 'ParisNeo'#config_data['creator']
|
personality_info['author'] = config_data.get('creator', 'ParisNeo')
|
||||||
personality_info['version'] = config_data['version']
|
personality_info['version'] = config_data.get('version', '1.0.0')
|
||||||
scripts_path = personality_folder / 'scripts'
|
scripts_path = personality_folder / 'scripts'
|
||||||
personality_info['has_scripts'] = scripts_path.is_dir()
|
personality_info['has_scripts'] = scripts_path.is_dir()
|
||||||
assets_path = personality_folder / 'assets'
|
assets_path = personality_folder / 'assets'
|
||||||
|
Loading…
Reference in New Issue
Block a user