Merge branch 'feature/add-prompt-translate'

This commit is contained in:
Manuel Schmid 2023-11-26 11:23:38 +01:00
commit 92a54cff22
No known key found for this signature in database
GPG Key ID: 32C4F7569B40B84B
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,6 @@ def worker():
from modules.util import remove_empty_str, HWC3, resize_image, \
get_image_shape_ceil, set_image_shape_ceil, get_shape_ceil, resample_image
from modules.upscaler import perform_upscale
from modules.translator import translate2en
try:
async_gradio_app = shared.gradio_root
@ -206,6 +205,7 @@ def worker():
steps = 8
if translate_prompts:
from modules.translator import translate2en
prompt = translate2en(prompt, 'prompt')
negative_prompt = translate2en(negative_prompt, 'negative prompt')