From 1d0965f8c99350beb94c6183886352dde8be50ac Mon Sep 17 00:00:00 2001 From: Manuel Schmid Date: Mon, 24 Jun 2024 20:43:28 +0200 Subject: [PATCH] feat: rename enhance image input label, add link to documentation --- language/en.json | 1 - webui.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/language/en.json b/language/en.json index 17bffa17..ec7ef09d 100644 --- a/language/en.json +++ b/language/en.json @@ -18,7 +18,6 @@ "Art/Anime": "Art/Anime", "Describe this Image into Prompt": "Describe this Image into Prompt", "Image Size and Recommended Size": "Image Size and Recommended Size", - "Upscale or Variation": "Upscale or Variation", "Upscale or Variation:": "Upscale or Variation:", "Disabled": "Disabled", "Vary (Subtle)": "Vary (Subtle)", diff --git a/webui.py b/webui.py index 3e0cedfa..abaf1994 100644 --- a/webui.py +++ b/webui.py @@ -328,7 +328,8 @@ with shared.gradio_root: with gr.TabItem(label='Enhance') as enhance_tab: with gr.Row(): with gr.Column(): - enhance_input_image = grh.Image(label='Image to enhance', source='upload', type='numpy') + enhance_input_image = grh.Image(label='Base image for enhance', source='upload', type='numpy') + gr.HTML('\U0001F4D4 Document') with gr.TabItem(label='Metadata') as metadata_tab: with gr.Column(): @@ -501,7 +502,6 @@ with shared.gradio_root: desc_tab.select(lambda: 'desc', outputs=current_tab, queue=False, _js=down_js, show_progress=False) enhance_tab.select(lambda: 'enhance', outputs=current_tab, queue=False, _js=down_js, show_progress=False) metadata_tab.select(lambda: 'metadata', outputs=current_tab, queue=False, _js=down_js, show_progress=False) - enhance_checkbox.change(lambda x: gr.update(visible=x), inputs=enhance_checkbox, outputs=enhance_input_panel, queue=False, show_progress=False, _js=switch_js)