Update Styles

Update Styles
This commit is contained in:
lllyasviel
2023-10-25 14:29:46 -07:00
parent a6ac4604cd
commit 01b1e98d37
8 changed files with 47 additions and 45 deletions
+4 -4
View File
@@ -68,9 +68,9 @@ with shared.gradio_root:
prompt = gr.Textbox(show_label=False, placeholder="Type prompt here.",
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)
default_prompt = modules.path.default_prompt
if isinstance(default_prompt, str) and default_prompt != '':
shared.gradio_root.load(lambda: default_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)
@@ -193,7 +193,7 @@ with shared.gradio_root:
image_number = gr.Slider(label='Image Number', minimum=1, maximum=32, step=1, value=modules.path.default_image_number)
negative_prompt = gr.Textbox(label='Negative Prompt', show_label=True, placeholder="Type prompt here.",
info='Describing what you do not want to see.', lines=2,
value=modules.path.default_negative_prompt)
value=modules.path.default_prompt_negative)
seed_random = gr.Checkbox(label='Random', value=True)
image_seed = gr.Textbox(label='Seed', value=0, max_lines=1, visible=False) # workaround for https://github.com/gradio-app/gradio/issues/5354