Andy1621 commited on
Commit
3def095
·
1 Parent(s): d969a42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -42,7 +42,7 @@ def inference(img):
42
  image = image_transform(image)
43
 
44
  # The model expects inputs of shape: B x C x T x H x W
45
- image = image[None, :, None, ...]
46
 
47
  prediction = model(image)
48
  prediction = F.softmax(prediction, dim=1)
 
42
  image = image_transform(image)
43
 
44
  # The model expects inputs of shape: B x C x T x H x W
45
+ image = image.unsqueeze(0)
46
 
47
  prediction = model(image)
48
  prediction = F.softmax(prediction, dim=1)