Skip to content
13 changes: 6 additions & 7 deletions args_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,23 @@
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. "
help="Translate UI using json files in [language] folder."
"For example, [--language example] will use [language/example.json] for translation.")

# For example, https://github.com/lllyasviel/Fooocus/issues/849
args_parser.parser.add_argument("--disable-offload-from-vram", action="store_true",
help="Force loading models to vram when the unload can be avoided. "
"Some Mac users may need this.")

args_parser.parser.add_argument("--theme", type=str, help="launches the UI with light or dark theme", default=None)
args_parser.parser.add_argument("--theme", type=str, help="launches the UI with light or dark theme.", default=None)
args_parser.parser.add_argument("--disable-image-log", action='store_true',
help="Prevent writing images and logs to the outputs folder.")

args_parser.parser.add_argument("--disable-analytics", action='store_true',
help="Disables analytics for Gradio.")

args_parser.parser.add_argument("--disable-metadata", action='store_true',
help="Disables saving metadata to images.")

args_parser.parser.add_argument("--disable-preset-download", action='store_true',
help="Disables downloading models for presets", default=False)
help="Disables downloading models for presets.", default=False)

args_parser.parser.add_argument("--disable-enhance-output-sorting", action='store_true',
help="Disables enhance output sorting for final image gallery.")
Expand All @@ -40,8 +37,10 @@
args_parser.parser.add_argument("--rebuild-hash-cache", help="Generates missing model and LoRA hashes.",
type=int, nargs="?", metavar="CPU_NUM_THREADS", const=-1)

args_parser.parser.add_argument("--favicon-path", type=str, default=None, help="Set the favicon filepath.")
args_parser.parser.add_argument("--auth-message", type=str, default=None, help="Message to show for auth.")

args_parser.parser.set_defaults(
disable_cuda_malloc=True,
in_browser=True,
port=None
)
Expand Down
Loading