aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authororionaskatu <100234619+orionaskatu@users.noreply.github.com>2022-09-08 08:42:21 +0000
committerGitHub <noreply@github.com>2022-09-08 08:42:21 +0000
commit567c1fbc1c0be1a922ba8aee6ec20c99fa5bf363 (patch)
treebc01a9258c75d2756dbea28f0e6697e209bf548b
parent48317a5176466b0de8be06a7af30d3d2a437de49 (diff)
downloadstable-diffusion-webui-gfx803-567c1fbc1c0be1a922ba8aee6ec20c99fa5bf363.tar.gz
stable-diffusion-webui-gfx803-567c1fbc1c0be1a922ba8aee6ec20c99fa5bf363.tar.bz2
stable-diffusion-webui-gfx803-567c1fbc1c0be1a922ba8aee6ec20c99fa5bf363.zip
Port defaults to none
-rw-r--r--modules/shared.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 1882cf34..de7cbf02 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -34,7 +34,7 @@ parser.add_argument("--share", action='store_true', help="use share=True for gra
parser.add_argument("--esrgan-models-path", type=str, help="path to directory with ESRGAN models", default=os.path.join(script_path, 'ESRGAN'))
parser.add_argument("--opt-split-attention", action='store_true', help="enable optimization that reduced vram usage by a lot for about 10%% decrease in performance")
parser.add_argument("--listen", action='store_true', help="launch gradio with 0.0.0.0 as server name, allowing to respond to network requests")
-parser.add_argument("--port", type=int, help="launch gradio with given server port, you need root/admin rights for ports < 1024", default=7860)
+parser.add_argument("--port", type=int, help="launch gradio with given server port, you need root/admin rights for ports < 1024, defaults to 7860 if available", default=None)
cmd_opts = parser.parse_args()
if torch.has_cuda: