mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-29 10:59:32 +01:00
Allow "Your name" field to be saved
This commit is contained in:
parent
ce59c92764
commit
1ce3c93600
@ -185,7 +185,7 @@ def apply_interface_values(state, use_persistent=False):
|
|||||||
|
|
||||||
def save_settings(state, preset, instruction_template, extensions, show_controls):
|
def save_settings(state, preset, instruction_template, extensions, show_controls):
|
||||||
output = copy.deepcopy(shared.settings)
|
output = copy.deepcopy(shared.settings)
|
||||||
exclude = ['name1', 'name2', 'greeting', 'context', 'turn_template']
|
exclude = ['name2', 'greeting', 'context', 'turn_template']
|
||||||
for k in state:
|
for k in state:
|
||||||
if k in shared.settings and k not in exclude:
|
if k in shared.settings and k not in exclude:
|
||||||
output[k] = state[k]
|
output[k] = state[k]
|
||||||
|
Loading…
Reference in New Issue
Block a user