Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -184,7 +184,7 @@ def get_size(init_image):
|
|
184 |
w,h = chosen_ratio['width'], chosen_ratio['height']
|
185 |
return w,h
|
186 |
|
187 |
-
def
|
188 |
image = image.convert('RGB')
|
189 |
w,h = get_size(image)
|
190 |
resized_image = image.resize((w, h))
|
|
|
184 |
w,h = chosen_ratio['width'], chosen_ratio['height']
|
185 |
return w,h
|
186 |
|
187 |
+
def resize_img(image):
|
188 |
image = image.convert('RGB')
|
189 |
w,h = get_size(image)
|
190 |
resized_image = image.resize((w, h))
|