Skip to content

Commit 6771c7a

Browse files
authored
fix code style flux (openvinotoolkit#2317)
1 parent 993665b commit 6771c7a

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

notebooks/flux.1-image-generation/flux.1-image-generation.ipynb

+1
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,7 @@
421421
],
422422
"source": [
423423
"from notebook_utils import device_widget\n",
424+
"\n",
424425
"device = device_widget(default=\"CPU\", exclude=[\"NPU\"])\n",
425426
"device"
426427
]

notebooks/flux.1-image-generation/flux_helper.py

-1
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,6 @@ def _get_clip_prompt_embeds(
381381
prompt: Union[str, List[str]],
382382
num_images_per_prompt: int = 1,
383383
):
384-
385384
prompt = [prompt] if isinstance(prompt, str) else prompt
386385
batch_size = len(prompt)
387386

notebooks/flux.1-image-generation/gradio_helper.py

-4
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,10 @@ def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, num_in
3131
return image, seed
3232

3333
with gr.Blocks(css=css) as demo:
34-
3534
with gr.Column(elem_id="col-container"):
3635
gr.Markdown(f"""# FLUX.1 OpenVINO demo""")
3736

3837
with gr.Row():
39-
4038
prompt = gr.Text(
4139
label="Prompt",
4240
show_label=False,
@@ -50,7 +48,6 @@ def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, num_in
5048
result = gr.Image(label="Result", show_label=False)
5149

5250
with gr.Accordion("Advanced Settings", open=False):
53-
5451
seed = gr.Slider(
5552
label="Seed",
5653
minimum=0,
@@ -62,7 +59,6 @@ def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, num_in
6259
randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
6360

6461
with gr.Row():
65-
6662
width = gr.Slider(
6763
label="Width",
6864
minimum=256,

0 commit comments

Comments
 (0)