maxbetjes commited on
Commit
9354b89
·
verified ·
1 Parent(s): b4e0584

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,9 +11,9 @@ def imread(filepath):
11
  fpath, fext = os.path.splitext(filepath)
12
 
13
  if fext in ['tiff', 'tif']:
14
- img = tiff.imread(filepath[-1])
15
  else:
16
- img = cv2.imread(filepath[-1])
17
 
18
  return img
19
 
 
11
  fpath, fext = os.path.splitext(filepath)
12
 
13
  if fext in ['tiff', 'tif']:
14
+ img = tiff.imread(filepath)
15
  else:
16
+ img = cv2.imread(filepath)
17
 
18
  return img
19