diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-09-09 07:02:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-09 07:02:02 +0000 |
commit | 558808c748d118f5d417a0d3810c0b7e9dcf8626 (patch) | |
tree | 2ce7be011290bb129f2592415971bfc07f6705da /modules/txt2img.py | |
parent | 46375f059276cb2d4d1e47bf65f984c6466dc2a0 (diff) | |
parent | c68aabc852151633016d3d5c84b433041f09d96e (diff) | |
download | stable-diffusion-webui-gfx803-558808c748d118f5d417a0d3810c0b7e9dcf8626.tar.gz stable-diffusion-webui-gfx803-558808c748d118f5d417a0d3810c0b7e9dcf8626.tar.bz2 stable-diffusion-webui-gfx803-558808c748d118f5d417a0d3810c0b7e9dcf8626.zip |
Merge pull request #13119 from AUTOMATIC1111/enable_console_prompts-in-settings
enable console prompts in settings
Diffstat (limited to 'modules/txt2img.py')
-rw-r--r-- | modules/txt2img.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/txt2img.py b/modules/txt2img.py index 1ee592ad..e4e18ceb 100644 --- a/modules/txt2img.py +++ b/modules/txt2img.py @@ -3,7 +3,7 @@ from contextlib import closing import modules.scripts
from modules import processing
from modules.generation_parameters_copypaste import create_override_settings_dict
-from modules.shared import opts, cmd_opts
+from modules.shared import opts
import modules.shared as shared
from modules.ui import plaintext_to_html
import gradio as gr
@@ -45,7 +45,7 @@ def txt2img(id_task: str, prompt: str, negative_prompt: str, prompt_styles, step p.user = request.username
- if cmd_opts.enable_console_prompts:
+ if shared.opts.enable_console_prompts:
print(f"\ntxt2img: {prompt}", file=shared.progress_print_out)
with closing(p):
|