Skip to content

Commit 21c907e

Browse files
authored
couple of UI tweaks (lllyasviel#2626)
* sensible height for PNGInfo * use Gradio Image in Extras tab to preserve infotext when loading
1 parent a230253 commit 21c907e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

modules/ui.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -921,13 +921,13 @@ def select_img2img_tab(tab):
921921

922922
scripts.scripts_current = None
923923

924-
with gr.Blocks(analytics_enabled=False, head=canvas_head) as extras_interface:
924+
with gr.Blocks(analytics_enabled=False) as extras_interface:
925925
ui_postprocessing.create_ui()
926926

927-
with gr.Blocks(analytics_enabled=False, head=canvas_head) as pnginfo_interface:
927+
with gr.Blocks(analytics_enabled=False) as pnginfo_interface:
928928
with ResizeHandleRow(equal_height=False):
929929
with gr.Column(variant='panel'):
930-
image = gr.Image(elem_id="pnginfo_image", label="Source", source="upload", interactive=True, type="pil")
930+
image = gr.Image(elem_id="pnginfo_image", label="Source", source="upload", interactive=True, type="pil", height="50vh")
931931

932932
with gr.Column(variant='panel'):
933933
html = gr.HTML()

modules/ui_postprocessing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def create_ui():
1313
with gr.Column(variant='compact'):
1414
with gr.Tabs(elem_id="mode_extras"):
1515
with gr.TabItem('Single Image', id="single_image", elem_id="extras_single_tab") as tab_single:
16-
extras_image = ForgeCanvas(elem_id="extras_image", height=512, no_scribbles=True).background
16+
extras_image = gr.Image(label="Source", interactive=True, type="pil", elem_id="extras_image", image_mode="RGBA", height="55vh")
1717

1818
with gr.TabItem('Batch Process', id="batch_process", elem_id="extras_batch_process_tab") as tab_batch:
1919
image_batch = gr.Files(label="Batch Process", interactive=True, elem_id="extras_image_batch")

0 commit comments

Comments
 (0)