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