Merge pull request #12 from udon-universe/feature/replace-image-panel-with-gallery

update image output component
pull/20/head
mattya_monaca 2023-04-22 01:22:34 +09:00 committed by GitHub
commit dd0902d59f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -79,14 +79,11 @@ def on_ui_tabs():
submit = gr.Button(value="Submit")
with gr.Row():
with gr.Column():
with gr.Tab("output"):
output_img = gr.Image()
with gr.Tab("mask"):
output_mask = gr.Image()
gallery = gr.Gallery(label="outputs", show_label=True, elem_id="gallery").style(grid=2)
submit.click(
processing,
inputs=[input_image, td_abg_enabled, h_split, v_split, n_cluster, alpha, th_rate, cascadePSP_enabled, fast, psp_L, sa_enabled, seg_query, model_name, predicted_iou_threshold, stability_score_threshold, clip_threshold],
outputs=[output_img, output_mask]
outputs=gallery
)
return [(PBRemTools, "PBRemTools", "pbremtools")]