Merge pull request #29 from tsukimiya/add-theme-settings
added theme setting
This commit is contained in:
commit
84ac63def2
|
@ -107,9 +107,11 @@
|
||||||
"\n",
|
"\n",
|
||||||
"search_paperspace_datasets = True # Enable searching for checkpoints in /datasets to link to the webui\n",
|
"search_paperspace_datasets = True # Enable searching for checkpoints in /datasets to link to the webui\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
"ui_theme = 'None' # Set the WEB UI theme. Values can be 'None' (default) or 'dark'.\n",
|
||||||
|
"\n",
|
||||||
"# ===============================================================\n",
|
"# ===============================================================\n",
|
||||||
"# Save variables to Jupiter's temp storage so we can access it even if the kernel restarts.\n",
|
"# Save variables to Jupiter's temp storage so we can access it even if the kernel restarts.\n",
|
||||||
"%store symlink_to_notebooks model_storage_dir repo_storage_dir activate_xformers link_novelai_anime_vae download_scripts activate_deepdanbooru activate_medvram disable_pickle_check gradio_port gradio_auth search_paperspace_datasets"
|
"%store symlink_to_notebooks model_storage_dir repo_storage_dir activate_xformers link_novelai_anime_vae download_scripts activate_deepdanbooru activate_medvram disable_pickle_check gradio_port gradio_auth search_paperspace_datasets ui_theme"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -822,7 +824,7 @@
|
||||||
},
|
},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"%store -r model_storage_dir repo_storage_dir activate_xformers activate_deepdanbooru activate_medvram disable_pickle_check gradio_port gradio_auth\n",
|
"%store -r model_storage_dir repo_storage_dir activate_xformers activate_deepdanbooru activate_medvram disable_pickle_check gradio_port gradio_auth ui_theme\n",
|
||||||
"%cd \"{repo_storage_dir}/stable-diffusion-webui\"\n",
|
"%cd \"{repo_storage_dir}/stable-diffusion-webui\"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# Enable optional args automatically based on settings\n",
|
"# Enable optional args automatically based on settings\n",
|
||||||
|
@ -832,9 +834,10 @@
|
||||||
"pickled = '--disable-safe-unpickle' if disable_pickle_check else ''\n",
|
"pickled = '--disable-safe-unpickle' if disable_pickle_check else ''\n",
|
||||||
"port = f'--port {gradio_port}' if gradio_port else '--share'\n",
|
"port = f'--port {gradio_port}' if gradio_port else '--share'\n",
|
||||||
"auth = f'--gradio-auth {gradio_auth} --enable-insecure-extension-access' if gradio_auth else ''\n",
|
"auth = f'--gradio-auth {gradio_auth} --enable-insecure-extension-access' if gradio_auth else ''\n",
|
||||||
|
"theme = f'--theme {ui_theme}' if ui_theme else ''\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# Launch args go below:\n",
|
"# Launch args go below:\n",
|
||||||
"!python webui.py {x_arg} {dd_arg} {mvram_arg} {pickled} {port} {auth} --gradio-debug"
|
"!python webui.py {x_arg} {dd_arg} {mvram_arg} {pickled} {port} {auth} {theme} --gradio-debug"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue