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
08b3f7ae
Commit
08b3f7ae
authored
Oct 13, 2022
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
emergency fix for broken send to buttons
parent
354ef0da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
javascript/ui.js
javascript/ui.js
+4
-4
modules/ui.py
modules/ui.py
+1
-1
No files found.
javascript/ui.js
View file @
08b3f7ae
...
@@ -33,27 +33,27 @@ function args_to_array(args){
...
@@ -33,27 +33,27 @@ function args_to_array(args){
}
}
function
switch_to_txt2img
(){
function
switch_to_txt2img
(){
gradioApp
().
querySelectorAll
(
'
button
'
)[
0
].
click
();
gradioApp
().
querySelector
(
'
#tabs
'
).
querySelector
All
(
'
button
'
)[
0
].
click
();
return
args_to_array
(
arguments
);
return
args_to_array
(
arguments
);
}
}
function
switch_to_img2img_img2img
(){
function
switch_to_img2img_img2img
(){
gradioApp
().
querySelectorAll
(
'
button
'
)[
1
].
click
();
gradioApp
().
querySelector
(
'
#tabs
'
).
querySelector
All
(
'
button
'
)[
1
].
click
();
gradioApp
().
getElementById
(
'
mode_img2img
'
).
querySelectorAll
(
'
button
'
)[
0
].
click
();
gradioApp
().
getElementById
(
'
mode_img2img
'
).
querySelectorAll
(
'
button
'
)[
0
].
click
();
return
args_to_array
(
arguments
);
return
args_to_array
(
arguments
);
}
}
function
switch_to_img2img_inpaint
(){
function
switch_to_img2img_inpaint
(){
gradioApp
().
querySelectorAll
(
'
button
'
)[
1
].
click
();
gradioApp
().
querySelector
(
'
#tabs
'
).
querySelector
All
(
'
button
'
)[
1
].
click
();
gradioApp
().
getElementById
(
'
mode_img2img
'
).
querySelectorAll
(
'
button
'
)[
1
].
click
();
gradioApp
().
getElementById
(
'
mode_img2img
'
).
querySelectorAll
(
'
button
'
)[
1
].
click
();
return
args_to_array
(
arguments
);
return
args_to_array
(
arguments
);
}
}
function
switch_to_extras
(){
function
switch_to_extras
(){
gradioApp
().
querySelectorAll
(
'
button
'
)[
2
].
click
();
gradioApp
().
querySelector
(
'
#tabs
'
).
querySelector
All
(
'
button
'
)[
2
].
click
();
return
args_to_array
(
arguments
);
return
args_to_array
(
arguments
);
}
}
...
...
modules/ui.py
View file @
08b3f7ae
...
@@ -1434,7 +1434,7 @@ Requested path was: {f}
...
@@ -1434,7 +1434,7 @@ Requested path was: {f}
settings_interface
.
gradio_ref
=
demo
settings_interface
.
gradio_ref
=
demo
with
gr
.
Tabs
()
as
tabs
:
with
gr
.
Tabs
(
elem_id
=
"tabs"
)
as
tabs
:
for
interface
,
label
,
ifid
in
interfaces
:
for
interface
,
label
,
ifid
in
interfaces
:
with
gr
.
TabItem
(
label
,
id
=
ifid
,
elem_id
=
'tab_'
+
ifid
):
with
gr
.
TabItem
(
label
,
id
=
ifid
,
elem_id
=
'tab_'
+
ifid
):
interface
.
render
()
interface
.
render
()
...
...
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