Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stable-diffusion-webui
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
stable-diffusion-webui
Commits
d84f3cf7
Commit
d84f3cf7
authored
Feb 19, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
split #7300 into multiple lines
parent
c3d5a6ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
webui.py
webui.py
+9
-1
No files found.
webui.py
View file @
d84f3cf7
...
...
@@ -207,6 +207,14 @@ def webui():
if
cmd_opts
.
gradio_queue
:
shared
.
demo
.
queue
(
64
)
gradio_auth_creds
=
[]
if
cmd_opts
.
gradio_auth
:
gradio_auth_creds
+=
cmd_opts
.
gradio_auth
.
strip
(
'"'
)
.
replace
(
'
\n
'
,
''
)
.
split
(
','
)
if
cmd_opts
.
gradio_auth_path
:
with
open
(
cmd_opts
.
gradio_auth_path
,
'r'
,
encoding
=
"utf8"
)
as
file
:
for
line
in
file
.
readlines
():
gradio_auth_creds
+=
[
x
.
strip
()
for
x
in
line
.
split
(
','
)]
app
,
local_url
,
share_url
=
shared
.
demo
.
launch
(
share
=
cmd_opts
.
share
,
server_name
=
server_name
,
...
...
@@ -214,7 +222,7 @@ def webui():
ssl_keyfile
=
cmd_opts
.
tls_keyfile
,
ssl_certfile
=
cmd_opts
.
tls_certfile
,
debug
=
cmd_opts
.
gradio_debug
,
auth
=
[
tuple
(
cred
.
split
(
':'
))
for
cred
in
(
cmd_opts
.
gradio_auth
.
strip
(
'"'
)
.
replace
(
'
\n
'
,
''
)
.
split
(
','
)
+
(
open
(
cmd_opts
.
gradio_auth_path
,
'r'
)
.
read
()
.
strip
()
.
replace
(
'
\n
'
,
''
)
.
split
(
','
)
if
cmd_opts
.
gradio_auth_path
and
os
.
path
.
exists
(
cmd_opts
.
gradio_auth_path
)
else
None
))]
if
cmd_opts
.
gradio_auth
or
(
cmd_opts
.
gradio_auth_path
and
os
.
path
.
exists
(
cmd_opts
.
gradio_auth_path
))
else
None
,
auth
=
[
tuple
(
cred
.
split
(
':'
))
for
cred
in
gradio_auth_creds
]
if
gradio_auth_creds
else
None
,
inbrowser
=
cmd_opts
.
autolaunch
,
prevent_thread_lock
=
True
)
...
...
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