Skip to content

Commit 0987b65

Browse files
hlkysayakpaul
andauthored
Apply suggestions from code review
Co-authored-by: Sayak Paul <[email protected]>
1 parent e4707ba commit 0987b65

File tree

1 file changed

+3
-4
lines changed
  • docs/source/en/api/pipelines

1 file changed

+3
-4
lines changed

docs/source/en/api/pipelines/flux.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,8 @@ import torch
324324
from diffusers import FluxPipeline
325325
from diffusers.utils import load_image
326326

327-
pipe: FluxPipeline = FluxPipeline.from_pretrained(
328-
"black-forest-labs/FLUX.1-dev",
329-
torch_dtype=torch.bfloat16,
327+
pipe = FluxPipeline.from_pretrained(
328+
"black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16
330329
).to("cuda")
331330

332331
image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/flux_ip_adapter_input.jpg").resize((1024, 1024))
@@ -341,7 +340,7 @@ pipe.set_ip_adapter_scale(1.0)
341340
image = pipe(
342341
width=1024,
343342
height=1024,
344-
prompt='wearing sunglasses',
343+
prompt="wearing sunglasses",
345344
negative_prompt="",
346345
true_cfg=4.0,
347346
generator=torch.Generator().manual_seed(4444),

0 commit comments

Comments
 (0)