Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def resize(height,img):
|
|
17 |
img = Image.open(img)
|
18 |
hpercent = (baseheight/float(img.size[1]))
|
19 |
wsize = int((float(img.size[0])*float(hpercent)))
|
20 |
-
img = img.resize((wsize,baseheight), Image.LANCZOS)
|
21 |
return img
|
22 |
|
23 |
def predict(source_img, prompt):
|
|
|
17 |
img = Image.open(img)
|
18 |
hpercent = (baseheight/float(img.size[1]))
|
19 |
wsize = int((float(img.size[0])*float(hpercent)))
|
20 |
+
img = img.resize((wsize,baseheight), Image.Resampling.LANCZOS)
|
21 |
return img
|
22 |
|
23 |
def predict(source_img, prompt):
|