aboutsummaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-06 19:33:51 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-06 19:33:51 +0300
commitfd66199769ebe0851d2ff33fdc7b191421822454 (patch)
tree58665e755d560046e06792ba2da8ed56ec683a8a /webui.py
parentdb6db585eb9ee48e7315e28603e18531dbc87067 (diff)
added preview option
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/webui.py b/webui.py
index 67e9e0a8..e52efcee 100644
--- a/webui.py
+++ b/webui.py
@@ -125,7 +125,8 @@ def wrap_gradio_gpu_call(func):
shared.state.sampling_step = 0
shared.state.job_count = -1
shared.state.job_no = 0
-
+ shared.state.current_latent = None
+ shared.state.current_image = None
with queue_lock:
res = func(*args, **kwargs)
@@ -163,7 +164,7 @@ modules.scripts.load_scripts(os.path.join(script_path, "scripts"))
if __name__ == "__main__":
# make the program just exit at ctrl+c without waiting for anything
def sigint_handler(sig, frame):
- print(f'Interrupted with singal {sig} in {frame}')
+ print(f'Interrupted with signal {sig} in {frame}')
os._exit(0)