Skips normalizing prompts for web UI metadata

This commit is contained in:
psychedelicious 2022-10-19 15:22:50 +08:00 committed by Lincoln Stein
parent a45786ca2e
commit bc626af6ca

View File

@ -792,7 +792,7 @@ class InvokeAIWebServer:
rfc_dict['sampler'] = parameters['sampler_name']
# display weighted subprompts (liable to change)
subprompts = split_weighted_subprompts(parameters['prompt'])
subprompts = split_weighted_subprompts(parameters['prompt'], skip_normalize=True)
subprompts = [{'prompt': x[0], 'weight': x[1]} for x in subprompts]
rfc_dict['prompt'] = subprompts