Spaces:
Build error
Build error
Update app.py
Browse files208 unmodified lines209210211212213214215216208 unmodified lines# Open the imageimage = Image.open(init_image)# Resize the image while maintaining the aspect ratioimage.resize((new_width, new_height), Image.LANCZOS)# Save the resized image to the specified output pathimage.save("resized.png")208 unmodified lines209210211212213214215216208 unmodified lines# Open the imageimage = Image.open(init_image)# Resize the imageimage.resize((512, 512), Image.LANCZOS)# Save the resized image to the specified output pathimage.save("resized.png")
app.py+2-2