Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
S
Stable Diffusion Webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
novelai-storage
Stable Diffusion Webui
Commits
18e3e6d6
Commit
18e3e6d6
authored
Aug 28, 2023
by
w-e-w
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
consolidate local check
parent
ad266d79
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
modules/shared_cmd_options.py
modules/shared_cmd_options.py
+2
-2
webui.py
webui.py
+1
-1
No files found.
modules/shared_cmd_options.py
View file @
18e3e6d6
...
...
@@ -14,5 +14,5 @@ if os.environ.get('IGNORE_CMD_ARGS_ERRORS', None) is None:
else
:
cmd_opts
,
_
=
parser
.
parse_known_args
()
cmd_opts
.
disable_extension_access
=
any
([
cmd_opts
.
share
,
cmd_opts
.
listen
,
cmd_opts
.
ngrok
,
cmd_opts
.
server_name
])
and
not
cmd_opts
.
enable_insecure_extension_access
cmd_opts
.
webui_is_non_local
=
any
([
cmd_opts
.
share
,
cmd_opts
.
listen
,
cmd_opts
.
ngrok
,
cmd_opts
.
server_name
])
cmd_opts
.
disable_extension_access
=
cmd_opts
.
webui_is_non_local
and
not
cmd_opts
.
enable_insecure_extension_access
webui.py
View file @
18e3e6d6
...
...
@@ -74,7 +74,7 @@ def webui():
if
shared
.
opts
.
auto_launch_browser
==
"Remote"
or
cmd_opts
.
autolaunch
:
auto_launch_browser
=
True
elif
shared
.
opts
.
auto_launch_browser
==
"Local"
:
auto_launch_browser
=
not
any
([
cmd_opts
.
listen
,
cmd_opts
.
share
,
cmd_opts
.
ngrok
,
cmd_opts
.
server_name
])
auto_launch_browser
=
not
cmd_opts
.
webui_is_non_local
app
,
local_url
,
share_url
=
shared
.
demo
.
launch
(
share
=
cmd_opts
.
share
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment