mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-01 20:04:04 +01:00
Reset your name when choosing a character
This commit is contained in:
parent
163ea295e7
commit
c544386824
@ -438,6 +438,8 @@ def load_character(character, name1, name2, mode):
|
|||||||
name2 = data['name'] if 'name' in data else data['char_name']
|
name2 = data['name'] if 'name' in data else data['char_name']
|
||||||
if 'your_name' in data and data['your_name'] != '':
|
if 'your_name' in data and data['your_name'] != '':
|
||||||
name1 = data['your_name']
|
name1 = data['your_name']
|
||||||
|
else:
|
||||||
|
name1 = shared.settings['name1']
|
||||||
|
|
||||||
for field in ['context', 'greeting', 'example_dialogue', 'char_persona', 'char_greeting', 'world_scenario']:
|
for field in ['context', 'greeting', 'example_dialogue', 'char_persona', 'char_greeting', 'world_scenario']:
|
||||||
if field in data:
|
if field in data:
|
||||||
|
Loading…
Reference in New Issue
Block a user