Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
fa9d2ac2
Commit
fa9d2ac2
authored
Jun 14, 2023
by
Jared Deckard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix gradio special args in the call queue
parent
baf6946e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
modules/call_queue.py
modules/call_queue.py
+3
-0
No files found.
modules/call_queue.py
View file @
fa9d2ac2
from
functools
import
wraps
import
html
import
html
import
sys
import
sys
import
threading
import
threading
...
@@ -20,6 +21,7 @@ def wrap_queued_call(func):
...
@@ -20,6 +21,7 @@ def wrap_queued_call(func):
def
wrap_gradio_gpu_call
(
func
,
extra_outputs
=
None
):
def
wrap_gradio_gpu_call
(
func
,
extra_outputs
=
None
):
@
wraps
(
func
)
def
f
(
*
args
,
**
kwargs
):
def
f
(
*
args
,
**
kwargs
):
# if the first argument is a string that says "task(...)", it is treated as a job id
# 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):
...
@@ -47,6 +49,7 @@ def wrap_gradio_gpu_call(func, extra_outputs=None):
def
wrap_gradio_call
(
func
,
extra_outputs
=
None
,
add_stats
=
False
):
def
wrap_gradio_call
(
func
,
extra_outputs
=
None
,
add_stats
=
False
):
@
wraps
(
func
)
def
f
(
*
args
,
extra_outputs_array
=
extra_outputs
,
**
kwargs
):
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
run_memmon
=
shared
.
opts
.
memmon_poll_rate
>
0
and
not
shared
.
mem_mon
.
disabled
and
add_stats
if
run_memmon
:
if
run_memmon
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment