Skip to content

Commit

Permalink
Merge pull request #12603 from AUTOMATIC1111/auto-add-data-dir-to-gra…
Browse files Browse the repository at this point in the history
…dio-allowed-path

auto add data-dir to gradio-allowed-path
  • Loading branch information
AUTOMATIC1111 authored Aug 16, 2023
2 parents 023a3a9 + 0cf85b2 commit fc3a57f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cmd_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
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)
Expand Down

0 comments on commit fc3a57f

Please sign in to comment.