added gradio-auth and insecure-extension-access settings.
This commit is contained in:
parent
fccf07e083
commit
07e7504876
|
@ -101,10 +101,13 @@
|
|||
"\n",
|
||||
"gradio_port = False # Launch Gradio on a specific port. Set to False to let Gradio choose a port.\n",
|
||||
" # This disables online Gradio app mode and you will only be able to access it on your local network.\n",
|
||||
" \n",
|
||||
"\n",
|
||||
"gradio_auth = False # Enable gradio_auth and insecure-extension-access option.\n",
|
||||
" # Set to \"me:password\" to let Gradio auth.\n",
|
||||
"\n",
|
||||
"# ===============================================================\n",
|
||||
"# Save variables to Jupiter's temp storage so we can access it even if the kernel restarts.\n",
|
||||
"%store free_tier model_storage_dir repo_storage_dir activate_xformers link_novelai_anime_vae download_scripts activate_deepdanbooru activate_medvram disable_pickle_check gradio_port xformers_leave_cuda"
|
||||
"%store free_tier model_storage_dir repo_storage_dir activate_xformers link_novelai_anime_vae download_scripts activate_deepdanbooru activate_medvram disable_pickle_check gradio_port xformers_leave_cuda gradio_auth"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
@ -826,9 +829,10 @@
|
|||
"mvram_arg = '--medvram' if activate_medvram else ''\n",
|
||||
"pickled = '--disable-safe-unpickle' if disable_pickle_check else ''\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",
|
||||
"\n",
|
||||
"# Launch args go below:\n",
|
||||
"!python webui.py {x_arg} {dd_arg} {mvram_arg} {pickled} {port} --gradio-debug # --gradio-auth me:password1234"
|
||||
"!python webui.py {x_arg} {dd_arg} {mvram_arg} {pickled} {port} --gradio-debug {auth}"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue