remotewith commited on
Commit
57474b8
·
1 Parent(s): cbae11c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def predict(img) -> Tuple[Dict, float]:
48
  start_time = timer()
49
 
50
  # Transform the target image and add a batch dimension
51
- img1=PIL.Image.open(img, mode=’r’)
52
  img1 = effnetb2_transforms(img1).unsqueeze(0)
53
  pix = normalize_2d(np.array(img))
54
 
 
48
  start_time = timer()
49
 
50
  # Transform the target image and add a batch dimension
51
+ img1=PIL.Image.open(img)
52
  img1 = effnetb2_transforms(img1).unsqueeze(0)
53
  pix = normalize_2d(np.array(img))
54