Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
a2933bf8
Unverified
Commit
a2933bf8
authored
May 16, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
May 16, 2024
Browse files
Merge pull request #2328 from cheahjs/fix/image-gen-after-config-refac
fix: image generation broken by config persistence
parents
302a17b3
51a41c8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
backend/apps/images/main.py
backend/apps/images/main.py
+1
-1
No files found.
backend/apps/images/main.py
View file @
a2933bf8
...
...
@@ -397,7 +397,7 @@ def generate_image(
user
=
Depends
(
get_current_user
),
):
width
,
height
=
tuple
(
map
(
int
,
app
.
state
.
config
.
IMAGE_SIZE
)
.
split
(
"x"
))
width
,
height
=
tuple
(
map
(
int
,
app
.
state
.
config
.
IMAGE_SIZE
.
split
(
"x"
))
)
r
=
None
try
:
...
...
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