fix capitalization

This commit is contained in:
Vladimir Mandic
2024-06-06 13:15:44 -04:00
parent b8c6d63580
commit 4e1f8a2b71
+2 -2
View File
@@ -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