From d05846eae5dc1ed836ddd9767fd3f6ac62499e33 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 21 Jul 2024 10:17:22 -0700 Subject: [PATCH] UI: refresh the pfp cache on handle_your_picture_change --- modules/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/chat.py b/modules/chat.py index a1196daf..c95673ce 100644 --- a/modules/chat.py +++ b/modules/chat.py @@ -1180,7 +1180,7 @@ def handle_delete_template_click(template): def handle_your_picture_change(picture, state): upload_your_profile_picture(picture) - html = redraw_html(state['history'], state['name1'], state['name2'], state['mode'], state['chat_style'], state['character_menu']) + html = redraw_html(state['history'], state['name1'], state['name2'], state['mode'], state['chat_style'], state['character_menu'], reset_cache=True) return html