diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-10-19 08:44:51 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-10-19 08:44:51 +0300 |
commit | 5daf9cbb98cc13b5e4b74cd01ffa5146b5745bc9 (patch) | |
tree | ab6e0eaff740eac1439b71db3dd675427220bd0b /modules/shared.py | |
parent | 10aca1ca3e81e69e08f556a500c3dc603451429b (diff) | |
parent | 0f0d6ab8e06898ce066251fc769fe14e77e98ced (diff) |
Merge remote-tracking branch 'origin/api'
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index c0d87168..f7d66870 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -76,6 +76,8 @@ parser.add_argument("--disable-console-progressbars", action='store_true', help= parser.add_argument("--enable-console-prompts", action='store_true', help="print prompts to console when generating with txt2img and img2img", default=False)
parser.add_argument('--vae-path', type=str, help='Path to Variational Autoencoders model', default=None)
parser.add_argument("--disable-safe-unpickle", action='store_true', help="disable checking pytorch models for malicious code", default=False)
+parser.add_argument("--api", action='store_true', help="use api=True to launch the api with the webui")
+parser.add_argument("--nowebui", action='store_true', help="use api=True to launch the api instead of the webui")
cmd_opts = parser.parse_args()
restricted_opts = [
|