mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Merge branch 'feature/add-prompt-translate'
# Conflicts: # requirements_versions.txt # webui.py
This commit is contained in:
@@ -224,6 +224,9 @@ with shared.gradio_root:
|
||||
info='Describing what you do not want to see.', lines=2,
|
||||
elem_id='negative_prompt',
|
||||
value=modules.config.default_prompt_negative)
|
||||
translate_prompts = gr.Checkbox(label='Translate Prompts',
|
||||
info='Uses the internet to translate prompts to English',
|
||||
value=False)
|
||||
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
|
||||
|
||||
@@ -515,7 +518,7 @@ with shared.gradio_root:
|
||||
], show_progress=False, queue=False)
|
||||
|
||||
ctrls = [
|
||||
currentTask, prompt, negative_prompt, style_selections,
|
||||
currentTask, prompt, negative_prompt, translate_prompts, style_selections,
|
||||
performance_selection, aspect_ratios_selection, image_number, image_seed, sharpness, guidance_scale
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user