Rubén Escobedo
commited on
Commit
•
c6d4273
1
Parent(s):
bb76910
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def predict(img):
|
|
18 |
model = model.cpu()
|
19 |
model.eval()
|
20 |
|
21 |
-
image = transforms.Resize((480,640))(img)
|
22 |
tensor = transform_image(image=image)
|
23 |
|
24 |
model.to(device)
|
|
|
18 |
model = model.cpu()
|
19 |
model.eval()
|
20 |
|
21 |
+
image = transforms.Resize((480,640))(Image.fromarray(img))
|
22 |
tensor = transform_image(image=image)
|
23 |
|
24 |
model.to(device)
|