diff options
author | Jared Deckard <jared@shademaps.com> | 2023-06-14 18:53:13 +0000 |
---|---|---|
committer | Jared Deckard <jared@shademaps.com> | 2023-06-14 18:53:13 +0000 |
commit | fa9d2ac2ff7cf6fbc73525190bd7fde724ec1fb3 (patch) | |
tree | 3ca5c5fa4403b33d7a5247289044a71b39048534 | |
parent | baf6946e06249c5af9851c60171692c44ef633e0 (diff) | |
download | stable-diffusion-webui-gfx803-fa9d2ac2ff7cf6fbc73525190bd7fde724ec1fb3.tar.gz stable-diffusion-webui-gfx803-fa9d2ac2ff7cf6fbc73525190bd7fde724ec1fb3.tar.bz2 stable-diffusion-webui-gfx803-fa9d2ac2ff7cf6fbc73525190bd7fde724ec1fb3.zip |
Fix gradio special args in the call queue
-rw-r--r-- | modules/call_queue.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/call_queue.py b/modules/call_queue.py index 447bb764..64ebf868 100644 --- a/modules/call_queue.py +++ b/modules/call_queue.py @@ -1,3 +1,4 @@ +from functools import wraps
import html
import sys
import threading
@@ -20,6 +21,7 @@ def wrap_queued_call(func): def wrap_gradio_gpu_call(func, extra_outputs=None):
+ @wraps(func)
def f(*args, **kwargs):
# if the first argument is a string that says "task(...)", it is treated as a job id
@@ -47,6 +49,7 @@ def wrap_gradio_gpu_call(func, extra_outputs=None): def wrap_gradio_call(func, extra_outputs=None, add_stats=False):
+ @wraps(func)
def f(*args, extra_outputs_array=extra_outputs, **kwargs):
run_memmon = shared.opts.memmon_poll_rate > 0 and not shared.mem_mon.disabled and add_stats
if run_memmon:
|