Browse Source

fix: image generation broken by config persistence

Jun Siang Cheah 11 months ago
parent
commit
51a41c8db4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend/apps/images/main.py

+ 1 - 1
backend/apps/images/main.py

@@ -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: