Linoy Tsaban commited on
Commit
502c9db
1 Parent(s): 74b2d2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -817,7 +817,7 @@ with gr.Blocks(css="style.css") as demo:
817
  outputs = [do_inversion],
818
  queue = False).then(
819
  fn = randomize_seed_fn,
820
- inputs = [seed, randomize_seed],
821
  outputs = [seed], queue = False)
822
  # Automatically start inverting upon input_image change
823
  input_image.upload(fn = crop_image, inputs = [input_image], outputs = [input_image],queue=False).then(
@@ -825,7 +825,7 @@ with gr.Blocks(css="style.css") as demo:
825
  outputs = [do_inversion],
826
  queue = False).then(
827
  fn = randomize_seed_fn,
828
- inputs = [seed, randomize_seed],
829
  outputs = [seed], queue = False).then(fn = caption_image,
830
  inputs = [input_image],
831
  outputs = [tar_prompt, image_caption]).then(fn = update_inversion_progress_visibility, inputs =[input_image,do_inversion],
@@ -925,7 +925,7 @@ with gr.Blocks(css="style.css") as demo:
925
 
926
  randomize_seed.change(
927
  fn = randomize_seed_fn,
928
- inputs = [seed, randomize_seed],
929
  outputs = [seed],
930
  queue = False)
931
 
 
817
  outputs = [do_inversion],
818
  queue = False).then(
819
  fn = randomize_seed_fn,
820
+ # inputs = [seed, randomize_seed],
821
  outputs = [seed], queue = False)
822
  # Automatically start inverting upon input_image change
823
  input_image.upload(fn = crop_image, inputs = [input_image], outputs = [input_image],queue=False).then(
 
825
  outputs = [do_inversion],
826
  queue = False).then(
827
  fn = randomize_seed_fn,
828
+ # inputs = [seed, randomize_seed],
829
  outputs = [seed], queue = False).then(fn = caption_image,
830
  inputs = [input_image],
831
  outputs = [tar_prompt, image_caption]).then(fn = update_inversion_progress_visibility, inputs =[input_image,do_inversion],
 
925
 
926
  randomize_seed.change(
927
  fn = randomize_seed_fn,
928
+ # inputs = [seed, randomize_seed],
929
  outputs = [seed],
930
  queue = False)
931