Spaces:
Build error
Build error
Update app.py
Browse files
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
|
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)
|