mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-09 08:33:41 +00:00
Restructure the repository (#6904)
This commit is contained in:
parent
d4017fbb6d
commit
d9de14d1f7
116 changed files with 254 additions and 261 deletions
|
|
@ -387,13 +387,13 @@ def generate_cai_chat_html(history, name1, name2, style, character, reset_cache=
|
|||
|
||||
# We use ?character and ?time.time() to force the browser to reset caches
|
||||
img_bot = (
|
||||
f'<img src="file/cache/pfp_character_thumb.png?{character}" class="pfp_character">'
|
||||
if Path("cache/pfp_character_thumb.png").exists() else ''
|
||||
f'<img src="file/user_data/cache/pfp_character_thumb.png?{character}" class="pfp_character">'
|
||||
if Path("user_data/cache/pfp_character_thumb.png").exists() else ''
|
||||
)
|
||||
|
||||
img_me = (
|
||||
f'<img src="file/cache/pfp_me.png?{time.time() if reset_cache else ""}">'
|
||||
if Path("cache/pfp_me.png").exists() else ''
|
||||
f'<img src="file/user_data/cache/pfp_me.png?{time.time() if reset_cache else ""}">'
|
||||
if Path("user_data/cache/pfp_me.png").exists() else ''
|
||||
)
|
||||
|
||||
for i in range(len(history['visible'])):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue