Curse Gradio

This commit is contained in:
lllyasviel 2023-10-19 07:17:29 -07:00
parent f553d0fb18
commit 7ced4e26a7
2 changed files with 6 additions and 2 deletions

View File

@ -1 +1 @@
version = '2.1.707'
version = '2.1.708'

View File

@ -64,8 +64,12 @@ with shared.gradio_root:
with gr.Row(elem_classes='type_row'):
with gr.Column(scale=17):
prompt = gr.Textbox(show_label=False, placeholder="Type prompt here.",
value=modules.path.default_positive_prompt,
container=False, autofocus=True, elem_classes='type_row', lines=1024)
if isinstance(modules.path.default_positive_prompt, str) \
and modules.path.default_positive_prompt != '':
shared.gradio_root.load(lambda: modules.path.default_positive_prompt, outputs=prompt)
with gr.Column(scale=3, min_width=0):
generate_button = gr.Button(label="Generate", value="Generate", elem_classes='type_row', elem_id='generate_button', visible=True)
skip_button = gr.Button(label="Skip", value="Skip", elem_classes='type_row_half', visible=False)