mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Update Styles
Update Styles
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user