Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -78,7 +78,7 @@ def brush_stroke_mask(img, color=(255,255,255)):
|
|
78 |
mask = generate_mask(height, width, img)
|
79 |
return mask
|
80 |
|
81 |
-
def resize(
|
82 |
aspect_ratio = float(image.shape[1])/float(image.shape[0])
|
83 |
height = width/aspect_ratio
|
84 |
image = cv2.resize(image, (int(height),int(width)))
|
|
|
78 |
mask = generate_mask(height, width, img)
|
79 |
return mask
|
80 |
|
81 |
+
def resize(image, width = 1024):
|
82 |
aspect_ratio = float(image.shape[1])/float(image.shape[0])
|
83 |
height = width/aspect_ratio
|
84 |
image = cv2.resize(image, (int(height),int(width)))
|