mirror of
https://github.com/ParisNeo/lollms-webui.git
synced 2025-01-31 00:23:52 +00:00
fixed bug in format
This commit is contained in:
parent
31767cd1b9
commit
041791a522
4
app.py
4
app.py
@ -262,9 +262,9 @@ class Gpt4AllWebUI(GPT4AllAPI):
|
|||||||
gif_logo_path = assets_path / 'logo.gif'
|
gif_logo_path = assets_path / 'logo.gif'
|
||||||
personality_info['has_logo'] = logo_path.is_file() or gif_logo_path.is_file()
|
personality_info['has_logo'] = logo_path.is_file() or gif_logo_path.is_file()
|
||||||
if gif_logo_path.is_file():
|
if gif_logo_path.is_file():
|
||||||
personality_info['avatar'] = str(gif_logo_path)
|
personality_info['avatar'] = str(gif_logo_path).replace("\\","/")
|
||||||
elif logo_path.is_file():
|
elif logo_path.is_file():
|
||||||
personality_info['avatar'] = str(logo_path)
|
personality_info['avatar'] = str(logo_path).replace("\\","/")
|
||||||
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…
x
Reference in New Issue
Block a user