Clean nested Krea figure phrasing
This commit is contained in:
@@ -546,6 +546,12 @@ def _krea_grammar_issues(name: str, krea_prompt: str) -> list[str]:
|
||||
flags=re.IGNORECASE,
|
||||
):
|
||||
issues.append(f"{name}.krea_prompt: subject_appearance_with_grammar")
|
||||
if re.search(
|
||||
r"\b(?:woman|man|person)\s+with\s+a\s+[^.;]{0,120}\bfigure\s+with\b",
|
||||
krea_prompt,
|
||||
flags=re.IGNORECASE,
|
||||
):
|
||||
issues.append(f"{name}.krea_prompt: nested_figure_with_grammar")
|
||||
if re.search(r",\s+[A-Z][A-Za-z -]+ camera layout\b", krea_prompt):
|
||||
issues.append(f"{name}.krea_prompt: comma_joined_camera_layout")
|
||||
return issues
|
||||
|
||||
Reference in New Issue
Block a user