mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 20:07:49 +01:00
fix: image generation broken by config persistence
This commit is contained in:
@@ -397,7 +397,7 @@ def generate_image(
|
|||||||
user=Depends(get_current_user),
|
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
|
r = None
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user