Spaces:
Build error
Build error
秋山翔
commited on
Commit
·
a4fc95a
1
Parent(s):
f692f52
MAINT: logging cleanup
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ def get_model(style):
|
|
68 |
|
69 |
|
70 |
def validate_image_size(img):
|
71 |
-
|
72 |
if img.height > MAX_DIMENSION or img.width > MAX_DIMENSION:
|
73 |
raise RuntimeError(
|
74 |
"Image size is too large. Please use an image less than {MAX_DIMENSION}px on both width and height"
|
|
|
68 |
|
69 |
|
70 |
def validate_image_size(img):
|
71 |
+
logger.info(f"Image Height: {img.height}, Image Width: {img.width}")
|
72 |
if img.height > MAX_DIMENSION or img.width > MAX_DIMENSION:
|
73 |
raise RuntimeError(
|
74 |
"Image size is too large. Please use an image less than {MAX_DIMENSION}px on both width and height"
|