fix broken output info in img2img to highlight parameters like in txt2img (#1289)

- change gr.Textbox to gr.Highlightedtext like in txt2img
This commit is contained in:
xaedes 2022-09-24 02:21:33 +02:00 committed by GitHub
parent 6ae84c6c3a
commit acb051e9f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -247,7 +247,9 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x, imgproc=lambda
gr.Markdown("Warning: This will clear your current image and mask settings!")
with gr.TabItem("Output info", id="img2img_output_info_tab"):
output_img2img_params = gr.Textbox(label="Generation parameters")
output_img2img_params = gr.Highlightedtext(
label="Generation parameters", interactive=False,
elem_id='highlight')
with gr.Row():
output_img2img_copy_params = gr.Button("Copy full parameters").click(
inputs=output_img2img_params, outputs=[],