aboutsummaryrefslogtreecommitdiff
path: root/modules/cmd_args.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-08-16 14:48:37 +0300
committerGitHub <noreply@github.com>2023-08-16 14:48:37 +0300
commitfc3a57ff968467af6b9a37fc85477c5ab660b568 (patch)
treebfcdde4b9593c48a0d6eb7a09f323049f081cc58 /modules/cmd_args.py
parent023a3a98a1c1e067e12c155164150c5ba01748d0 (diff)
parent0cf85b24df4c5d46461baea78fb233d721d6e1b1 (diff)
Merge pull request #12603 from AUTOMATIC1111/auto-add-data-dir-to-gradio-allowed-path
auto add data-dir to gradio-allowed-path
Diffstat (limited to 'modules/cmd_args.py')
-rw-r--r--modules/cmd_args.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cmd_args.py b/modules/cmd_args.py
index b0a11538..f360f484 100644
--- a/modules/cmd_args.py
+++ b/modules/cmd_args.py
@@ -81,7 +81,7 @@ parser.add_argument("--gradio-auth", type=str, help='set gradio authentication l
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("--gradio-allowed-path", action='append', help="add path to gradio's allowed_paths, make it possible to serve files from it")
+parser.add_argument("--gradio-allowed-path", action='append', help="add path to gradio's allowed_paths, make it possible to serve files from it", default=[data_path])
parser.add_argument("--opt-channelslast", action='store_true', help="change memory type for stable diffusion to channels last")
parser.add_argument("--styles-file", type=str, help="filename to use for styles", default=os.path.join(data_path, 'styles.csv'))
parser.add_argument("--autolaunch", action='store_true', help="open the webui URL in the system's default browser upon launch", default=False)