samueld98 commited on
Commit
2e80ed7
1 Parent(s): 8bbaa47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -89,7 +89,7 @@ def accuracy(outputs, labels):
89
  return torch.tensor(torch.sum(preds == labels).item() / len(preds))
90
 
91
  def image_mod(image):
92
- im_resize = im.resize((500, 500))
93
  buf = io.BytesIO()
94
  im_resize.save(buf, format='JPEG')
95
  byte_im = buf.getvalue()
 
89
  return torch.tensor(torch.sum(preds == labels).item() / len(preds))
90
 
91
  def image_mod(image):
92
+ im_resize = image.resize((500, 500))
93
  buf = io.BytesIO()
94
  im_resize.save(buf, format='JPEG')
95
  byte_im = buf.getvalue()