Manjushri commited on
Commit
61bf676
·
1 Parent(s): ec4aa79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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):