diff options
author | orionaskatu <100234619+orionaskatu@users.noreply.github.com> | 2022-09-08 08:42:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-08 08:42:21 +0000 |
commit | 567c1fbc1c0be1a922ba8aee6ec20c99fa5bf363 (patch) | |
tree | bc01a9258c75d2756dbea28f0e6697e209bf548b /modules/shared.py | |
parent | 48317a5176466b0de8be06a7af30d3d2a437de49 (diff) | |
download | stable-diffusion-webui-gfx803-567c1fbc1c0be1a922ba8aee6ec20c99fa5bf363.tar.gz stable-diffusion-webui-gfx803-567c1fbc1c0be1a922ba8aee6ec20c99fa5bf363.tar.bz2 stable-diffusion-webui-gfx803-567c1fbc1c0be1a922ba8aee6ec20c99fa5bf363.zip |
Port defaults to none
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 2 |
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:
|