diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-18 07:12:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-18 07:12:41 +0000 |
commit | b4b42de9d5956c68151c296926a98e487d2fffae (patch) | |
tree | c95f2e531cc34475eb39266add6d12a2a5e1e2b3 /modules/cmd_args.py | |
parent | 983f2c494ad8fed2f08193681ba0bf5dda01555a (diff) | |
parent | 182330ae40c93b761fced8d03bbdd8523f1739d0 (diff) | |
download | stable-diffusion-webui-gfx803-b4b42de9d5956c68151c296926a98e487d2fffae.tar.gz stable-diffusion-webui-gfx803-b4b42de9d5956c68151c296926a98e487d2fffae.tar.bz2 stable-diffusion-webui-gfx803-b4b42de9d5956c68151c296926a98e487d2fffae.zip |
Merge pull request #10438 from bobzilladev/ngrok-py
Use ngrok-py library
Diffstat (limited to 'modules/cmd_args.py')
-rw-r--r-- | modules/cmd_args.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/cmd_args.py b/modules/cmd_args.py index 6144db5c..a4b9ea71 100644 --- a/modules/cmd_args.py +++ b/modules/cmd_args.py @@ -1,4 +1,5 @@ import argparse
+import json
import os
from modules.paths_internal import models_path, script_path, data_path, extensions_dir, extensions_builtin_dir, sd_default_config, sd_model_file # noqa: F401
@@ -39,7 +40,7 @@ parser.add_argument("--precision", type=str, help="evaluate at this precision", parser.add_argument("--upcast-sampling", action='store_true', help="upcast sampling. No effect with --no-half. Usually produces similar results to --no-half with better performance while using less memory.")
parser.add_argument("--share", action='store_true', help="use share=True for gradio and make the UI accessible through their site")
parser.add_argument("--ngrok", type=str, help="ngrok authtoken, alternative to gradio --share", default=None)
-parser.add_argument("--ngrok-region", type=str, help="The region in which ngrok should start.", default="us")
+parser.add_argument("--ngrok-options", type=json.loads, help='The options to pass to ngrok in JSON format, e.g.: \'{"authtoken_from_env":true, "basic_auth":"user:password", "oauth_provider":"google", "oauth_allow_emails":"user@asdf.com"}\'', default=dict())
parser.add_argument("--enable-insecure-extension-access", action='store_true', help="enable extensions tab regardless of other options")
parser.add_argument("--codeformer-models-path", type=str, help="Path to directory with codeformer model file(s).", default=os.path.join(models_path, 'Codeformer'))
parser.add_argument("--gfpgan-models-path", type=str, help="Path to directory with GFPGAN model file(s).", default=os.path.join(models_path, 'GFPGAN'))
|