Port defaults to none
This commit is contained in:
parent
9c510011ac
commit
48317a5176
2
webui.py
2
webui.py
@ -191,4 +191,4 @@ if __name__ == "__main__":
|
||||
run_pnginfo=run_pnginfo
|
||||
)
|
||||
|
||||
demo.launch(share=cmd_opts.share, server_name="0.0.0.0" if cmd_opts.listen else None, server_port=cmd_opts.port)
|
||||
demo.launch(share=cmd_opts.share, server_name="0.0.0.0" if cmd_opts.listen else None, server_port=cmd_opts.port if cmd_opts.port else None)
|
||||
|
Loading…
Reference in New Issue
Block a user