Vijish commited on
Commit
7b13a4f
1 Parent(s): 0d6916b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)).cuda()
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():