Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,7 @@ def predict(img,text):
|
|
54 |
image_std = torch.tensor([0.26862954, 0.26130258, 0.27577711])
|
55 |
|
56 |
images = [preprocess(im) for im in l]
|
57 |
-
image_input = torch.tensor(np.stack(images))
|
58 |
image_input -= image_mean[:, None, None]
|
59 |
image_input /= image_std[:, None, None]
|
60 |
with torch.no_grad():
|
|
|
54 |
image_std = torch.tensor([0.26862954, 0.26130258, 0.27577711])
|
55 |
|
56 |
images = [preprocess(im) for im in l]
|
57 |
+
image_input = torch.tensor(np.stack(images))
|
58 |
image_input -= image_mean[:, None, None]
|
59 |
image_input /= image_std[:, None, None]
|
60 |
with torch.no_grad():
|