mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 17:29:22 +01:00
Fix loading instruction templates containing literal '\n'
This commit is contained in:
parent
f0fcd1f697
commit
f31281a8de
@ -540,7 +540,7 @@ def load_character(character, name1, name2, instruct=False):
|
||||
# Create .json log files since they don't already exist
|
||||
save_history('instruct' if instruct else 'chat')
|
||||
|
||||
return name1, name2, picture, greeting, context, repr(turn_template)[1:-1]
|
||||
return name1, name2, picture, greeting, context, turn_template.replace("\n", r"\n")
|
||||
|
||||
|
||||
@functools.cache
|
||||
|
Loading…
Reference in New Issue
Block a user