Merge branch 'feature/add-prompt-translate'

# Conflicts:
#	requirements_versions.txt
#	webui.py
This commit is contained in:
Manuel Schmid
2023-11-26 00:14:12 +01:00
4 changed files with 28 additions and 3 deletions
+4 -1
View File
@@ -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
]