fix: disable live prompt parsing, fix #676

This commit is contained in:
Thomas Mello 2022-09-13 00:37:56 +03:00 committed by GitHub
parent 7623a57347
commit e6a9e5d968
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,14 +139,16 @@ def draw_gradio_ui(opt, img2img=lambda x: x, txt2img=lambda x: x, imgproc=lambda
# txt2img_width.change(fn=uifn.update_dimensions_info, inputs=[txt2img_width, txt2img_height], outputs=txt2img_dimensions_info_text_box)
# txt2img_height.change(fn=uifn.update_dimensions_info, inputs=[txt2img_width, txt2img_height], outputs=txt2img_dimensions_info_text_box)
live_prompt_params = [txt2img_prompt, txt2img_width, txt2img_height, txt2img_steps, txt2img_seed,
txt2img_batch_count, txt2img_cfg]
txt2img_prompt.change(
fn=None,
inputs=live_prompt_params,
outputs=live_prompt_params,
_js=js_parse_prompt
)
# Temporarily disable prompt parsing until memory issues could be solved
# See #676
# live_prompt_params = [txt2img_prompt, txt2img_width, txt2img_height, txt2img_steps, txt2img_seed,
# txt2img_batch_count, txt2img_cfg]
# txt2img_prompt.change(
# fn=None,
# inputs=live_prompt_params,
# outputs=live_prompt_params,
# _js=js_parse_prompt
# )
with gr.TabItem("Image-to-Image Unified", id="img2img_tab"):
with gr.Row(elem_id="prompt_row"):