for876543 commited on
Commit
feab5d7
1 Parent(s): 82de39e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def classify_image(inp):
21
  inp = Image.fromarray(inp)
22
  inp= Resize((300, 300))(inp)
23
  inp= ToTensor()(inp)
24
- inp.append(torch.unsqueeze(inp, 0))
25
  ##print(inp.shape)
26
  #inp = inp.astype(np.uint8).reshape((-1, 3, 300, 300))
27
  ##print(inp.shape)
 
21
  inp = Image.fromarray(inp)
22
  inp= Resize((300, 300))(inp)
23
  inp= ToTensor()(inp)
24
+ inp = torch.unsqueeze(inp, 0)
25
  ##print(inp.shape)
26
  #inp = inp.astype(np.uint8).reshape((-1, 3, 300, 300))
27
  ##print(inp.shape)