Spaces:
Running
on
Zero
Running
on
Zero
Update models.py
Browse files
models.py
CHANGED
@@ -52,7 +52,7 @@ class InteriorDesignerPro:
|
|
52 |
|
53 |
style = DESIGN_STYLES.get(style_name, DESIGN_STYLES["Современный минимализм"])
|
54 |
|
55 |
-
#
|
56 |
if image.width > 768 or image.height > 768:
|
57 |
image.thumbnail((768, 768), Image.Resampling.LANCZOS)
|
58 |
|
|
|
52 |
|
53 |
style = DESIGN_STYLES.get(style_name, DESIGN_STYLES["Современный минимализм"])
|
54 |
|
55 |
+
# Строка 56-57 должна быть:
|
56 |
if image.width > 768 or image.height > 768:
|
57 |
image.thumbnail((768, 768), Image.Resampling.LANCZOS)
|
58 |
|