mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-01-27 04:23:21 +01:00
Fix
Fix problems with user picture cache
This commit is contained in:
parent
e1c5d350b1
commit
31c4c7f35c
@ -352,7 +352,7 @@ def generate_cai_chat_html(history, name1, name2, style, character, reset_cache=
|
||||
)
|
||||
|
||||
img_me = (
|
||||
f'<img src="file/cache/pfp_me.png?{time.time() if reset_cache else ""}">'
|
||||
f'<img src="file/cache/pfp_me.png?{name1}">'
|
||||
if Path("cache/pfp_me.png").exists() else ''
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user