root commited on
Commit
bf3c3df
1 Parent(s): 4ebfc95

add moveImageFromGallery

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -404,11 +404,11 @@ if __name__ == "__main__":
404
  img2img_image_mask
405
  )
406
 
407
-
408
  output_txt2img_copy_to_input_btn.click(
409
  uifn.copy_img_to_input,
410
  [gallery],
411
- [img2img_image_editor, img2img_image_mask, tabs],
412
  _js=call_JS("moveImageFromGallery",
413
  fromId="txt2img_gallery_output",
414
  toId="img2img_mask")
@@ -416,7 +416,7 @@ if __name__ == "__main__":
416
  output_txt2img_copy_to_input_btn.click(
417
  uifn.copy_img_to_input,
418
  [gallery],
419
- [img2img_image_editor, img2img_image_mask, tabs],
420
  )
421
 
422
  output_img2img_copy_to_input_btn.click(
 
404
  img2img_image_mask
405
  )
406
 
407
+ # 把上面这个注释掉下面就不管用了,很神奇无法理解...
408
  output_txt2img_copy_to_input_btn.click(
409
  uifn.copy_img_to_input,
410
  [gallery],
411
+ [tabs, img2img_image_editor, img2img_image_mask],
412
  _js=call_JS("moveImageFromGallery",
413
  fromId="txt2img_gallery_output",
414
  toId="img2img_mask")
 
416
  output_txt2img_copy_to_input_btn.click(
417
  uifn.copy_img_to_input,
418
  [gallery],
419
+ [tabs, img2img_image_editor, img2img_image_mask],
420
  )
421
 
422
  output_img2img_copy_to_input_btn.click(