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
3c76f430
Commit
3c76f430
authored
May 20, 2023
by
comfyanonymous
Browse files
Cleaner code.
parent
b8636a44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
server.py
server.py
+2
-1
No files found.
server.py
View file @
3c76f430
...
...
@@ -331,7 +331,8 @@ class PromptServer():
extra_data
[
"client_id"
]
=
json_data
[
"client_id"
]
if
valid
[
0
]:
prompt_id
=
str
(
uuid
.
uuid4
())
self
.
prompt_queue
.
put
((
number
,
prompt_id
,
prompt
,
extra_data
,
valid
[
2
]))
outputs_to_execute
=
valid
[
2
]
self
.
prompt_queue
.
put
((
number
,
prompt_id
,
prompt
,
extra_data
,
outputs_to_execute
))
return
web
.
json_response
({
"prompt_id"
:
prompt_id
})
else
:
print
(
"invalid prompt:"
,
valid
[
1
])
...
...
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