From bf08b16b32847cc813b55a2d93fc15b2cf3a53ea Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 8 Aug 2023 14:09:01 -0700 Subject: [PATCH] Fix disappearing profile picture bug --- modules/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/chat.py b/modules/chat.py index 5667d433..efb7ecb8 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -471,7 +471,7 @@ def load_character(character, name1, name2, instruct=False): picture = None # 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() if character not in ['None', '', None]: