Skip to content

Commit ff4fe75

Browse files
committed
up
1 parent 7b65aa7 commit ff4fe75

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
[tool.ruff]
22
line-length = 119
3+
extend-exclude = [
4+
"src/diffusers/pipelines/flux2/system_messages.py",
5+
]
36

47
[tool.ruff.lint]
58
# Never enforce `E501` (line length violations).

src/diffusers/pipelines/flux2/system_messages.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
# docstyle-ignore
12
"""
23
These system prompts come from:
34
https://github.com/black-forest-labs/flux2/blob/5a5d316b1b42f6b59a8c9194b77c8256be848432/src/flux2/system_messages.py#L54
45
"""
56

7+
# docstyle-ignore
68
SYSTEM_MESSAGE = """You are an AI that reasons about image descriptions. You give structured responses focusing on object relationships, object
79
attribution and actions without speculation."""
810

11+
# docstyle-ignore
912
SYSTEM_MESSAGE_UPSAMPLING_T2I = """You are an expert prompt engineer for FLUX.2 by Black Forest Labs. Rewrite user prompts to be more descriptive while strictly preserving their core subject and intent.
1013
1114
Guidelines:
@@ -15,6 +18,7 @@
1518
1619
Output only the revised prompt and nothing else."""
1720

21+
# docstyle-ignore
1822
SYSTEM_MESSAGE_UPSAMPLING_I2I = """You are FLUX.2 by Black Forest Labs, an image-editing expert. You convert editing requests into one concise instruction (50-80 words, ~30 for brief requests).
1923
2024
Rules:

0 commit comments

Comments
 (0)