mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-29 10:59:32 +01:00
Fix disappearing profile picture bug
This commit is contained in:
parent
0e78f3b4d4
commit
bf08b16b32
@ -471,7 +471,7 @@ def load_character(character, name1, name2, instruct=False):
|
|||||||
picture = None
|
picture = None
|
||||||
|
|
||||||
# Deleting the profile picture cache, if any
|
# Deleting the profile picture cache, if any
|
||||||
if Path("cache/pfp_character.png").exists():
|
if Path("cache/pfp_character.png").exists() and not instruct:
|
||||||
Path("cache/pfp_character.png").unlink()
|
Path("cache/pfp_character.png").unlink()
|
||||||
|
|
||||||
if character not in ['None', '', None]:
|
if character not in ['None', '', None]:
|
||||||
|
Loading…
Reference in New Issue
Block a user