feat: add argument --disable-preset-selection

useful for cloud provisioning to prevent model switches and keep models loaded
This commit is contained in:
Manuel Schmid
2024-01-05 21:53:06 +01:00
parent e86b7f56bc
commit 4900837786
2 changed files with 31 additions and 22 deletions
+4 -1
View File
@@ -2,7 +2,10 @@ import ldm_patched.modules.args_parser as args_parser
args_parser.parser.add_argument("--share", action='store_true', help="Set whether to share on Gradio.")
args_parser.parser.add_argument("--preset", type=str, default=None, help="Apply specified UI preset.")
args_parser.parser.add_argument("--disable-preset-selection", action='store_true',
help="Disables preset selection in Gradio.")
args_parser.parser.add_argument("--language", type=str, default='default',
help="Translate UI using json files in [language] folder. "
@@ -18,7 +21,7 @@ args_parser.parser.add_argument("--disable-image-log", action='store_true',
help="Prevent writing images and logs to hard drive.")
args_parser.parser.add_argument("--disable-analytics", action='store_true',
help="Disables analytics for Gradio", default=False)
help="Disables analytics for Gradio.")
args_parser.parser.set_defaults(
disable_cuda_malloc=True,