aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-02-19 13:02:05 +0300
committerGitHub <noreply@github.com>2023-02-19 13:02:05 +0300
commitc3d5a6ed37c164c626d938ead9c7f12dc1233804 (patch)
tree45ca92c95aa7f6e072710ae597dcecea5fd88d7b /modules
parent11183b4d905d14c6a0164a4d13675b89b1bf4ceb (diff)
parentdc25a31d1a3816a7fb0cd5ef186559b3c085db43 (diff)
Merge pull request #7300 from Ju1-js/master
Gradio Auth - Read from External File
Diffstat (limited to 'modules')
-rw-r--r--modules/shared.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py
index e324a48a..2c2edfbd 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -81,6 +81,7 @@ parser.add_argument("--freeze-settings", action='store_true', help="disable edit
parser.add_argument("--ui-settings-file", type=str, help="filename to use for ui settings", default=os.path.join(data_path, 'config.json'))
parser.add_argument("--gradio-debug", action='store_true', help="launch gradio with --debug option")
parser.add_argument("--gradio-auth", type=str, help='set gradio authentication like "username:password"; or comma-delimit multiple like "u1:p1,u2:p2,u3:p3"', default=None)
+parser.add_argument("--gradio-auth-path", type=str, help='set gradio authentication file path ex. "/path/to/auth/file" same auth format as --gradio-auth', default=None)
parser.add_argument("--gradio-img2img-tool", type=str, help='does not do anything')
parser.add_argument("--gradio-inpaint-tool", type=str, help="does not do anything")
parser.add_argument("--opt-channelslast", action='store_true', help="change memory type for stable diffusion to channels last")