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
43c795f4
"vscode:/vscode.git/clone" did not exist on "7813c3316f3f2412fed504a8c7b712ac38032d6c"
Commit
43c795f4
authored
Feb 04, 2023
by
comfyanonymous
Browse files
Add a --listen argument to listen on 0.0.0.0
parent
41a7532c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
main.py
main.py
+5
-1
No files found.
main.py
View file @
43c795f4
...
@@ -445,6 +445,10 @@ def run(prompt_queue, address='', port=8188):
...
@@ -445,6 +445,10 @@ def run(prompt_queue, address='', port=8188):
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
q
=
PromptQueue
()
q
=
PromptQueue
()
threading
.
Thread
(
target
=
prompt_worker
,
daemon
=
True
,
args
=
(
q
,)).
start
()
threading
.
Thread
(
target
=
prompt_worker
,
daemon
=
True
,
args
=
(
q
,)).
start
()
run
(
q
,
address
=
'127.0.0.1'
,
port
=
8188
)
if
'--listen'
in
sys
.
argv
:
address
=
'0.0.0.0'
else
:
address
=
'127.0.0.1'
run
(
q
,
address
=
address
,
port
=
8188
)
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