Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 15 |
else:
|
| 16 |
-
img = cv2.imread(filepath
|
| 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 |
|