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
0834d4ce
Commit
0834d4ce
authored
Jan 28, 2023
by
AUTOMATIC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify #7284
parent
c99d705e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
ui.py
modules/ui.py
+3
-8
No files found.
modules/ui.py
View file @
0834d4ce
...
@@ -93,12 +93,6 @@ clear_prompt_symbol = '\U0001F5D1' # 🗑️
...
@@ -93,12 +93,6 @@ clear_prompt_symbol = '\U0001F5D1' # 🗑️
extra_networks_symbol
=
'
\U0001F3B4
'
# 🎴
extra_networks_symbol
=
'
\U0001F3B4
'
# 🎴
switch_values_symbol
=
'
\U000021C5
'
# ⇅
switch_values_symbol
=
'
\U000021C5
'
# ⇅
def
switch_width_and_height
(
width
,
height
):
width_temp
=
width
width
=
height
height
=
width_temp
return
width
,
height
def
plaintext_to_html
(
text
):
def
plaintext_to_html
(
text
):
return
ui_common
.
plaintext_to_html
(
text
)
return
ui_common
.
plaintext_to_html
(
text
)
...
@@ -574,7 +568,8 @@ def create_ui():
...
@@ -574,7 +568,8 @@ def create_ui():
txt2img_prompt
.
submit
(
**
txt2img_args
)
txt2img_prompt
.
submit
(
**
txt2img_args
)
submit
.
click
(
**
txt2img_args
)
submit
.
click
(
**
txt2img_args
)
res_switch_btn
.
click
(
switch_width_and_height
,
inputs
=
[
width
,
height
],
outputs
=
[
width
,
height
])
res_switch_btn
.
click
(
lambda
w
,
h
:
(
h
,
w
),
inputs
=
[
width
,
height
],
outputs
=
[
width
,
height
])
txt_prompt_img
.
change
(
txt_prompt_img
.
change
(
fn
=
modules
.
images
.
image_data
,
fn
=
modules
.
images
.
image_data
,
...
@@ -882,7 +877,7 @@ def create_ui():
...
@@ -882,7 +877,7 @@ def create_ui():
img2img_prompt
.
submit
(
**
img2img_args
)
img2img_prompt
.
submit
(
**
img2img_args
)
submit
.
click
(
**
img2img_args
)
submit
.
click
(
**
img2img_args
)
res_switch_btn
.
click
(
switch_width_and_height
,
inputs
=
[
width
,
height
],
outputs
=
[
width
,
height
])
res_switch_btn
.
click
(
lambda
w
,
h
:
(
h
,
w
)
,
inputs
=
[
width
,
height
],
outputs
=
[
width
,
height
])
img2img_interrogate
.
click
(
img2img_interrogate
.
click
(
fn
=
lambda
*
args
:
process_interrogate
(
interrogate
,
*
args
),
fn
=
lambda
*
args
:
process_interrogate
(
interrogate
,
*
args
),
...
...
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