Spaces:
Running
Running
root
commited on
Commit
·
f437d2e
1
Parent(s):
8299d2e
add moveImageFromGallery
Browse files
app.py
CHANGED
|
@@ -192,9 +192,9 @@ if __name__ == "__main__":
|
|
| 192 |
with block:
|
| 193 |
gr.HTML(read_content("header.html"))
|
| 194 |
|
| 195 |
-
with gr.Tabs() as tabs:
|
| 196 |
|
| 197 |
-
with gr.TabItem("文生图(Text-to-img)"):
|
| 198 |
|
| 199 |
with gr.Group():
|
| 200 |
with gr.Box():
|
|
@@ -413,7 +413,7 @@ if __name__ == "__main__":
|
|
| 413 |
[img2img_image_editor, img2img_image_mask, tabs],
|
| 414 |
_js=call_JS("moveImageFromGallery",
|
| 415 |
fromId="txt2img_gallery_output",
|
| 416 |
-
toId="
|
| 417 |
)
|
| 418 |
|
| 419 |
output_img2img_copy_to_input_btn.click(
|
|
@@ -421,7 +421,7 @@ if __name__ == "__main__":
|
|
| 421 |
[output_img2img_gallery],
|
| 422 |
[img2img_image_editor, tabs, img2img_image_editor_mode],
|
| 423 |
_js=call_JS("moveImageFromGallery",
|
| 424 |
-
fromId="
|
| 425 |
toId="img2img_editor")
|
| 426 |
)
|
| 427 |
output_img2img_copy_to_mask_btn.click(
|
|
|
|
| 192 |
with block:
|
| 193 |
gr.HTML(read_content("header.html"))
|
| 194 |
|
| 195 |
+
with gr.Tabs(elem_id='tabss') as tabs:
|
| 196 |
|
| 197 |
+
with gr.TabItem("文生图(Text-to-img)", id='txt2img_tab'):
|
| 198 |
|
| 199 |
with gr.Group():
|
| 200 |
with gr.Box():
|
|
|
|
| 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(
|
|
|
|
| 421 |
[output_img2img_gallery],
|
| 422 |
[img2img_image_editor, tabs, img2img_image_editor_mode],
|
| 423 |
_js=call_JS("moveImageFromGallery",
|
| 424 |
+
fromId="gallery",
|
| 425 |
toId="img2img_editor")
|
| 426 |
)
|
| 427 |
output_img2img_copy_to_mask_btn.click(
|