mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2024-12-20 21:03:07 +00:00
added default avatar
This commit is contained in:
parent
041791a522
commit
709c0a79fc
2
app.py
2
app.py
@ -265,6 +265,8 @@ class Gpt4AllWebUI(GPT4AllAPI):
|
|||||||
personality_info['avatar'] = str(gif_logo_path).replace("\\","/")
|
personality_info['avatar'] = str(gif_logo_path).replace("\\","/")
|
||||||
elif logo_path.is_file():
|
elif logo_path.is_file():
|
||||||
personality_info['avatar'] = str(logo_path).replace("\\","/")
|
personality_info['avatar'] = str(logo_path).replace("\\","/")
|
||||||
|
else:
|
||||||
|
personality_info['avatar'] = ""
|
||||||
personalities[language_folder.name][category_folder.name].append(personality_info)
|
personalities[language_folder.name][category_folder.name].append(personality_info)
|
||||||
|
|
||||||
return json.dumps(personalities)
|
return json.dumps(personalities)
|
||||||
|
Loading…
Reference in New Issue
Block a user