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
588d6de4
Unverified
Commit
588d6de4
authored
Sep 17, 2022
by
jjisnow
Committed by
GitHub
Sep 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ui.py
Reverse run_pnginfo for compatibility reasons
parent
047a623f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ui.py
modules/ui.py
+2
-2
No files found.
modules/ui.py
View file @
588d6de4
...
...
@@ -295,7 +295,7 @@ def create_toprow(is_img2img):
return
prompt
,
roll
,
prompt_style
,
negative_prompt
,
prompt_style2
,
submit
,
interrogate
,
prompt_style_apply
,
save_style
,
check_progress
def
create_ui
(
txt2img
,
img2img
,
run_extras
,
run_
image_
info
):
def
create_ui
(
txt2img
,
img2img
,
run_extras
,
run_
png
info
):
with
gr
.
Blocks
(
analytics_enabled
=
False
)
as
txt2img_interface
:
txt2img_prompt
,
roll
,
txt2img_prompt_style
,
txt2img_negative_prompt
,
txt2img_prompt_style2
,
submit
,
_
,
txt2img_prompt_style_apply
,
txt2img_save_style
,
check_progress
=
create_toprow
(
is_img2img
=
False
)
...
...
@@ -697,7 +697,7 @@ def create_ui(txt2img, img2img, run_extras, run_image_info):
submit
.
click
(
**
extras_args
)
pnginfo_interface
=
gr
.
Interface
(
wrap_gradio_call
(
run_
image_
info
),
wrap_gradio_call
(
run_
png
info
),
inputs
=
[
gr
.
Image
(
label
=
"Source"
,
source
=
"upload"
,
interactive
=
True
,
type
=
"pil"
),
],
...
...
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