Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -174,7 +174,7 @@ tag_model.to(device, dtype=weight_dtype)
|
|
174 |
|
175 |
def preprocess_image(input_image: Image.Image) -> Image.Image:
|
176 |
img = input_image.copy()
|
177 |
-
img.thumbnail((
|
178 |
return img
|
179 |
|
180 |
|
|
|
174 |
|
175 |
def preprocess_image(input_image: Image.Image) -> Image.Image:
|
176 |
img = input_image.copy()
|
177 |
+
img.thumbnail((1024, 1024), Image.Resampling.BILINEAR)
|
178 |
return img
|
179 |
|
180 |
|