linoyts HF staff commited on
Commit
4f9a30e
1 Parent(s): 0825aa9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -28,8 +28,8 @@ pipe_prior_redux = FluxPriorReduxPipeline.from_pretrained(
28
  torch_dtype=torch.bfloat16
29
  ).to("cuda")
30
 
31
- examples = [[Image.open("mona_lisa.jpg"), "pink hair, at the beach", None, "", 0.035],
32
- [Image.open("1665_Girl_with_a_Pearl_Earring.jpg"), "", Image.open("dali_example.jpg"), "", 0.035]]
33
 
34
  @spaces.GPU
35
  def infer(control_image, prompt, image_2, prompt_2, reference_scale= 0.03 ,
@@ -79,7 +79,11 @@ with gr.Blocks(css=css) as demo:
79
  with gr.Column(elem_id="col-container"):
80
  gr.Markdown(f"""# ⚡️ Fast FLUX.1 Redux [dev] ⚡️
81
  An adapter for FLUX [dev] to create image variations combined with ByteDance [
82
- Hyper FLUX 8 Steps LoRA](https://huggingface.co/ByteDance/Hyper-SD)
 
 
 
 
83
 
84
  [[non-commercial license](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md)] [[blog](https://blackforestlabs.ai/announcing-black-forest-labs/)] [[model](https://huggingface.co/black-forest-labs/FLUX.1-dev)]
85
  """)
@@ -194,8 +198,8 @@ Hyper FLUX 8 Steps LoRA](https://huggingface.co/ByteDance/Hyper-SD)
194
 
195
  gr.Examples(
196
  examples=examples,
197
- inputs=[input_image, prompt, image_2, prompt_2, reference_scale],
198
- outputs=[result],
199
  fn=infer,
200
  )
201
 
 
28
  torch_dtype=torch.bfloat16
29
  ).to("cuda")
30
 
31
+ examples = [[Image.open("mona_lisa.jpg"), "pink hair, at the beach", None, "", 0.035, 1., 1., 1., 1., 0],
32
+ [Image.open("1665_Girl_with_a_Pearl_Earring.jpg"), "", Image.open("dali_example.jpg"), "", 0.035, 1., 1., 1., 1., 0]]
33
 
34
  @spaces.GPU
35
  def infer(control_image, prompt, image_2, prompt_2, reference_scale= 0.03 ,
 
79
  with gr.Column(elem_id="col-container"):
80
  gr.Markdown(f"""# ⚡️ Fast FLUX.1 Redux [dev] ⚡️
81
  An adapter for FLUX [dev] to create image variations combined with ByteDance [
82
+ Hyper FLUX 8 Steps LoRA](https://huggingface.co/ByteDance/Hyper-SD) 🏎️
83
+ Now with added support:
84
+ - prompt input
85
+ - attention masking for improved prompt adherence
86
+ - multiple image interpolation
87
 
88
  [[non-commercial license](https://huggingface.co/black-forest-labs/FLUX.1-dev/blob/main/LICENSE.md)] [[blog](https://blackforestlabs.ai/announcing-black-forest-labs/)] [[model](https://huggingface.co/black-forest-labs/FLUX.1-dev)]
89
  """)
 
198
 
199
  gr.Examples(
200
  examples=examples,
201
+ inputs=[input_image, prompt, image_2, prompt_2, reference_scale, prompt_embeds_scale_1, prompt_embeds_scale_2, pooled_prompt_embeds_scale_1, pooled_prompt_embeds_scale_2, seed],
202
+ outputs=[result, seed],
203
  fn=infer,
204
  )
205