Fix exact Krea2 POV oral routing
This commit is contained in:
+2
-2
@@ -6,7 +6,7 @@ from typing import Any
|
||||
|
||||
PLACEHOLDER_VALUES = {"", "any", "auto", "random", "none", "null"}
|
||||
PREFERRED_VALUE_KEYS = ("text", "prompt", "template", "value", "name")
|
||||
METADATA_AXIS_KEYS = {"action_family", "position_family", "position_key", "position_keys"}
|
||||
METADATA_AXIS_KEYS = {"action_family", "position_family", "position_key", "position_keys", "krea2_variant_keys"}
|
||||
ACTION_CONTEXT_PRIORITY = (
|
||||
"position",
|
||||
"body_position",
|
||||
@@ -110,7 +110,7 @@ def action_context_text(axis_values: Any) -> str:
|
||||
|
||||
def context_text(*parts: Any, axis_values: Any = None) -> str:
|
||||
text_parts = [clean_text(part) for part in parts if clean_text(part)]
|
||||
text_parts.extend(axis_value_texts(axis_values))
|
||||
text_parts.extend(axis_value_texts(axis_values, skip_keys=METADATA_AXIS_KEYS))
|
||||
return " ".join(part.lower() for part in text_parts if part)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user