linoyts HF staff commited on
Commit
ad57993
1 Parent(s): 7f1bd0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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, 1., 1., 1., 1., 0],
32
- [Image.open("1665_Girl_with_a_Pearl_Earring.jpg"), "", Image.open("dali_example.jpg"), "", 0.08, .4, .6, .33, 1., 1912857110]]
33
 
34
  @spaces.GPU
35
  def infer(control_image, prompt, image_2, prompt_2, reference_scale= 0.03 ,
@@ -198,7 +198,7 @@ Now with added support:
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
  )
 
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, False],
32
+ [Image.open("1665_Girl_with_a_Pearl_Earring.jpg"), "", Image.open("dali_example.jpg"), "", 0.08, .4, .6, .33, 1., 1912857110, False]]
33
 
34
  @spaces.GPU
35
  def infer(control_image, prompt, image_2, prompt_2, reference_scale= 0.03 ,
 
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, randomize_seed],
202
  outputs=[result, seed],
203
  fn=infer,
204
  )