Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def predict(img):
|
|
55 |
image = transforms.Resize((480,640))(img)
|
56 |
tensor = transform_image(image=image)
|
57 |
with torch.no_grad():
|
58 |
-
outputs = model(tensor)
|
59 |
|
60 |
outputs = torch.argmax(outputs,1)
|
61 |
|
|
|
55 |
image = transforms.Resize((480,640))(img)
|
56 |
tensor = transform_image(image=image)
|
57 |
with torch.no_grad():
|
58 |
+
outputs = learn.model(tensor)
|
59 |
|
60 |
outputs = torch.argmax(outputs,1)
|
61 |
|