Clean nested Krea figure phrasing
This commit is contained in:
+14
-2
@@ -621,7 +621,15 @@ def smoke_builtin_single() -> None:
|
||||
)
|
||||
_expect(item in str(krea_metadata.get("krea_prompt", "")), "Krea metadata-only built-in route lost explicit item")
|
||||
_expect(pose in str(krea_metadata.get("krea_prompt", "")), "Krea metadata-only built-in route lost explicit pose")
|
||||
_expect(body_phrase in str(krea_metadata.get("krea_prompt", "")), "Krea metadata-only built-in route lost body phrase")
|
||||
krea_metadata_prompt = str(krea_metadata.get("krea_prompt", ""))
|
||||
if re.search(r"\b(?:body|build|figure|frame|physique|silhouette)\s+with\b", body_phrase, flags=re.IGNORECASE):
|
||||
body_head, body_detail = body_phrase.split(" with ", 1)
|
||||
_expect(
|
||||
body_head in krea_metadata_prompt and body_detail in krea_metadata_prompt,
|
||||
"Krea metadata-only built-in route lost normalized body phrase",
|
||||
)
|
||||
else:
|
||||
_expect(body_phrase in krea_metadata_prompt, "Krea metadata-only built-in route lost body phrase")
|
||||
_expect(skin in str(krea_metadata.get("krea_prompt", "")), "Krea metadata-only built-in route lost skin")
|
||||
_expect(hair in str(krea_metadata.get("krea_prompt", "")), "Krea metadata-only built-in route lost hair")
|
||||
_expect(eyes in str(krea_metadata.get("krea_prompt", "")), "Krea metadata-only built-in route lost eyes")
|
||||
@@ -1448,9 +1456,13 @@ def smoke_krea_normal_row_routes() -> None:
|
||||
"Krea single route kept old comma-with figure grammar",
|
||||
)
|
||||
_expect(
|
||||
"adult woman with a slim busty figure with" in figure_note_prompt,
|
||||
"adult woman with a slim busty figure defined by soft" in figure_note_prompt,
|
||||
"Krea single route did not attach figure-note appearance to the subject",
|
||||
)
|
||||
_expect(
|
||||
"adult woman with a slim busty figure with" not in figure_note_prompt,
|
||||
"Krea single route kept nested figure-with wording",
|
||||
)
|
||||
_expect(
|
||||
"adult woman, showing slim busty figure with" not in figure_note_prompt,
|
||||
"Krea single route kept awkward showing figure-note grammar",
|
||||
|
||||
Reference in New Issue
Block a user