feat: use resolved prompts with included expansion and styles for a1111 metadata

This commit is contained in:
Manuel Schmid
2024-01-15 22:17:51 +01:00
parent f7489cc9ef
commit 1a52367f3f
+2 -2
View File
@@ -875,8 +875,8 @@ def worker():
}
generation_params_text = ", ".join([k if k == v else f'{k}: {quote(v)}' for k, v in generation_params.items() if v is not None])
negative_prompt_text = f"\nNegative prompt: {raw_negative_prompt}" if raw_negative_prompt else ""
metadata_string = f"{raw_prompt}{negative_prompt_text}\n{generation_params_text}".strip()
negative_prompt_text = f"\nNegative prompt: {task['negative']}" if raw_negative_prompt else ""
metadata_string = f"{task['positive']}{negative_prompt_text}\n{generation_params_text}".strip()
for x in imgs:
d = [