From 4e1f8a2b711784636e27e3db2d9d5eb7ee7170a4 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 6 Jun 2024 13:15:44 -0400 Subject: [PATCH] fix capitalization --- modules/infotext.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/infotext.py b/modules/infotext.py index ed569517d..285631f84 100644 --- a/modules/infotext.py +++ b/modules/infotext.py @@ -27,9 +27,9 @@ def parse(infotext): if not isinstance(infotext, str): return {} debug(f'Raw: {infotext}') - if 'negative prompt:' not in infotext: + if 'negative prompt:' not in infotext.lower(): infotext = 'negative prompt: ' + infotext - if 'Prompt:' not in infotext: + if 'prompt:' not in infotext.lower(): infotext = 'prompt: ' + infotext remaining = infotext