Spaces:
Build error
Build error
Update app.py
Browse files
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 =
|
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()
|