Spaces:
Runtime error
Runtime error
root
commited on
Commit
•
27bbb72
1
Parent(s):
f437d2e
add moveImageFromGallery
Browse files
app.py
CHANGED
@@ -344,9 +344,9 @@ if __name__ == "__main__":
|
|
344 |
_js=call_JS("gradioInputToClipboard"), fn=None, show_progress=False)
|
345 |
output_img2img_stats = gr.HTML(label='Stats')
|
346 |
|
347 |
-
gr.Markdown('# 编辑设置')
|
348 |
|
349 |
-
with gr.Row():
|
350 |
with gr.Column():
|
351 |
img2img_width = gr.Slider(minimum=64, maximum=2048, step=64, label="图片宽度",
|
352 |
value=img2img_defaults["width"])
|
@@ -407,13 +407,18 @@ if __name__ == "__main__":
|
|
407 |
)
|
408 |
|
409 |
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
410 |
output_txt2img_copy_to_input_btn.click(
|
411 |
uifn.copy_img_to_input,
|
412 |
[gallery],
|
413 |
[img2img_image_editor, img2img_image_mask, tabs],
|
414 |
-
_js=call_JS("moveImageFromGallery",
|
415 |
-
fromId="txt2img_gallery_output",
|
416 |
-
toId="img2img_mask")
|
417 |
)
|
418 |
|
419 |
output_img2img_copy_to_input_btn.click(
|
|
|
344 |
_js=call_JS("gradioInputToClipboard"), fn=None, show_progress=False)
|
345 |
output_img2img_stats = gr.HTML(label='Stats')
|
346 |
|
347 |
+
gr.Markdown('# 编辑设置',visible=False)
|
348 |
|
349 |
+
with gr.Row(visible=False):
|
350 |
with gr.Column():
|
351 |
img2img_width = gr.Slider(minimum=64, maximum=2048, step=64, label="图片宽度",
|
352 |
value=img2img_defaults["width"])
|
|
|
407 |
)
|
408 |
|
409 |
#
|
410 |
+
# output_txt2img_copy_to_input_btn.click(
|
411 |
+
# uifn.copy_img_to_input,
|
412 |
+
# [gallery],
|
413 |
+
# [img2img_image_editor, img2img_image_mask, tabs],
|
414 |
+
# _js=call_JS("moveImageFromGallery",
|
415 |
+
# fromId="txt2img_gallery_output",
|
416 |
+
# toId="img2img_mask")
|
417 |
+
# )
|
418 |
output_txt2img_copy_to_input_btn.click(
|
419 |
uifn.copy_img_to_input,
|
420 |
[gallery],
|
421 |
[img2img_image_editor, img2img_image_mask, tabs],
|
|
|
|
|
|
|
422 |
)
|
423 |
|
424 |
output_img2img_copy_to_input_btn.click(
|