Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
1bbd3f7f
Commit
1bbd3f7f
authored
Jun 01, 2023
by
space-nuko
Browse files
Send back prompt number from prompt/ endpoint
parent
5c38958e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server.py
server.py
+1
-1
No files found.
server.py
View file @
1bbd3f7f
...
@@ -361,7 +361,7 @@ class PromptServer():
...
@@ -361,7 +361,7 @@ class PromptServer():
prompt_id
=
str
(
uuid
.
uuid4
())
prompt_id
=
str
(
uuid
.
uuid4
())
outputs_to_execute
=
valid
[
2
]
outputs_to_execute
=
valid
[
2
]
self
.
prompt_queue
.
put
((
number
,
prompt_id
,
prompt
,
extra_data
,
outputs_to_execute
))
self
.
prompt_queue
.
put
((
number
,
prompt_id
,
prompt
,
extra_data
,
outputs_to_execute
))
return
web
.
json_response
({
"prompt_id"
:
prompt_id
})
return
web
.
json_response
({
"prompt_id"
:
prompt_id
,
"number"
:
number
})
else
:
else
:
print
(
"invalid prompt:"
,
valid
[
1
])
print
(
"invalid prompt:"
,
valid
[
1
])
return
web
.
json_response
({
"error"
:
valid
[
1
],
"node_errors"
:
valid
[
3
]},
status
=
400
)
return
web
.
json_response
({
"error"
:
valid
[
1
],
"node_errors"
:
valid
[
3
]},
status
=
400
)
...
...
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