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