Ramendra commited on
Commit
6fe5680
·
1 Parent(s): 25855d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 = auto_transform(features).unsqueeze(0)
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)