aboutsummaryrefslogtreecommitdiff
path: root/modules/shared.py
diff options
context:
space:
mode:
authororionaskatu <100234619+orionaskatu@users.noreply.github.com>2022-09-08 09:44:14 +0200
committerGitHub <noreply@github.com>2022-09-08 09:44:14 +0200
commit5d087731a53da265e20dfd10b172c6104faf55f1 (patch)
treeb97723bbe37077a80a1b8c62535530900bc1b6df /modules/shared.py
parent61785cef656335cce3ab50b420301d2821f7c5e1 (diff)
add --port argument to shared.py
defaults to 7860
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py
index e529ec27..b65c9616 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -34,6 +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", default=7860)
cmd_opts = parser.parse_args()
if torch.has_cuda: