Spaces:
Running
Running
root commited on
Commit ·
f437d2e
1
Parent(s): 8299d2e
add moveImageFromGallery
Browse files191 unmodified lines192193194195195196197197198199200212 unmodified lines4134144154164164174184191 unmodified line421422423424424425426427191 unmodified lines with block: gr.HTML(read_content("header.html"))
with gr.Tabs() as tabs: with gr.Tabs(elem_id='tabss') as tabs:
with gr.TabItem("文生图(Text-to-img)"): with gr.TabItem("文生图(Text-to-img)", id='txt2img_tab'):
with gr.Group(): with gr.Box():212 unmodified lines [img2img_image_editor, img2img_image_mask, tabs], _js=call_JS("moveImageFromGallery", fromId="txt2img_gallery_output", toId="img2img_editor") toId="img2img_mask") )
output_img2img_copy_to_input_btn.click(1 unmodified line [output_img2img_gallery], [img2img_image_editor, tabs, img2img_image_editor_mode], _js=call_JS("moveImageFromGallery", fromId="img2img_gallery_output", fromId="gallery", toId="img2img_editor") ) output_img2img_copy_to_mask_btn.click(app.py+4-4