Update app.py
Browse files208 unmodified lines209210211212213212213214215216208 unmodified lines # Open the image image = Image.open(init_image)
# Resize the image while maintaining the aspect ratio image.resize((new_width, new_height), Image.LANCZOS) # Resize the image image.resize((512, 512), Image.LANCZOS)
# Save the resized image to the specified output path image.save("resized.png")app.py+2-2