mehdiabruee commited on
Commit
3822ccd
1 Parent(s): 76c8c49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -142,7 +142,7 @@ totensor = torchvision.transforms.ToTensor()
142
  normalize_fn = torchvision.transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
143
  topilimage = torchvision.transforms.ToPILImage()
144
 
145
- def predict(input_1):
146
  im1 = normalize_fn(totensor(input_1))
147
  print(im1.shape)
148
  preds1 = model(im1.unsqueeze(0))/2 + 0.5
 
142
  normalize_fn = torchvision.transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
143
  topilimage = torchvision.transforms.ToPILImage()
144
 
145
+ def predict(input_1, input_2):
146
  im1 = normalize_fn(totensor(input_1))
147
  print(im1.shape)
148
  preds1 = model(im1.unsqueeze(0))/2 + 0.5