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
1f18221e
Commit
1f18221e
authored
Feb 07, 2023
by
comfyanonymous
Browse files
Add --port to set custom port.
parent
6e40393b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
main.py
main.py
+9
-1
No files found.
main.py
View file @
1f18221e
...
...
@@ -449,6 +449,14 @@ if __name__ == "__main__":
address
=
'0.0.0.0'
else
:
address
=
'127.0.0.1'
run
(
q
,
address
=
address
,
port
=
8188
)
port
=
8188
try
:
p_index
=
sys
.
argv
.
index
(
'--port'
)
port
=
int
(
sys
.
argv
[
p_index
+
1
])
except
:
pass
run
(
q
,
address
=
address
,
port
=
port
)
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