Omnibus commited on
Commit
c7283cf
·
1 Parent(s): a2f8cb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,7 +26,8 @@ pipe = pipe.to(device)
26
 
27
  def resize(value,img):
28
  img = Image.open(requests.get(img, stream=True).raw)
29
- #img = Image.open(img)
 
30
  img = img.resize((value,value))
31
  return img
32
 
 
26
 
27
  def resize(value,img):
28
  img = Image.open(requests.get(img, stream=True).raw)
29
+ img.save("tmp_im.png")
30
+ img = Image.open("tmp_im.png")
31
  img = img.resize((value,value))
32
  return img
33