Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -31,7 +31,7 @@ def predict(img):
|
|
31 |
|
32 |
# Reading the image and size transformation
|
33 |
features = Image.open(img)
|
34 |
-
img =
|
35 |
|
36 |
with torch.inference_mode():
|
37 |
output = model_alexnet(img)
|
|
|
31 |
|
32 |
# Reading the image and size transformation
|
33 |
features = Image.open(img)
|
34 |
+
img = transforms(features).unsqueeze(0)
|
35 |
|
36 |
with torch.inference_mode():
|
37 |
output = model_alexnet(img)
|