|
|
|
|
@ -25,7 +25,8 @@ import gradio.routes
|
|
|
|
|
|
|
|
|
|
from modules import sd_hijack, sd_models
|
|
|
|
|
from modules.paths import script_path
|
|
|
|
|
from modules.shared import opts, cmd_opts,aesthetic_embeddings
|
|
|
|
|
|
|
|
|
|
from modules.shared import opts, cmd_opts, restricted_opts, aesthetic_embeddings
|
|
|
|
|
|
|
|
|
|
if cmd_opts.deepdanbooru:
|
|
|
|
|
from modules.deepbooru import get_deepbooru_tags
|
|
|
|
|
@ -1505,6 +1506,9 @@ Requested path was: {f}
|
|
|
|
|
if comp_args and isinstance(comp_args, dict) and comp_args.get('visible') is False:
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
if cmd_opts.hide_ui_dir_config and key in restricted_opts:
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
oldval = opts.data.get(key, None)
|
|
|
|
|
opts.data[key] = value
|
|
|
|
|
|
|
|
|
|
@ -1522,6 +1526,9 @@ Requested path was: {f}
|
|
|
|
|
if not opts.same_type(value, opts.data_labels[key].default):
|
|
|
|
|
return gr.update(visible=True), opts.dumpjson()
|
|
|
|
|
|
|
|
|
|
if cmd_opts.hide_ui_dir_config and key in restricted_opts:
|
|
|
|
|
return gr.update(value=oldval), opts.dumpjson()
|
|
|
|
|
|
|
|
|
|
oldval = opts.data.get(key, None)
|
|
|
|
|
opts.data[key] = value
|
|
|
|
|
|
|
|
|
|
|