mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-23 21:18:00 +01:00
Only load the default history if it's empty
This commit is contained in:
parent
c86e9a3372
commit
0c32ae27cc
@ -483,7 +483,8 @@ def load_character(character, name1, name2, mode):
|
||||
|
||||
|
||||
def load_default_history(name1, name2):
|
||||
load_character("None", name1, name2, "chat")
|
||||
if len(shared.history['visible']) == 0 and len(shared.history['internal']) == 0:
|
||||
load_character("None", name1, name2, "chat")
|
||||
|
||||
|
||||
def upload_character(json_file, img, tavern=False):
|
||||
|
Loading…
Reference in New Issue
Block a user