Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,8 @@ def tif_view(filepath):
|
|
| 35 |
imin = np.argmin(img.shape)
|
| 36 |
print(imin)
|
| 37 |
if imin<2:
|
| 38 |
-
img = np.moveaxis(img, imin,
|
|
|
|
| 39 |
else:
|
| 40 |
raise ValueError("TIF cannot have more than three dimensions")
|
| 41 |
|
|
|
|
| 35 |
imin = np.argmin(img.shape)
|
| 36 |
print(imin)
|
| 37 |
if imin<2:
|
| 38 |
+
img = np.moveaxis(img, imin, 2)
|
| 39 |
+
print(img.shape)
|
| 40 |
else:
|
| 41 |
raise ValueError("TIF cannot have more than three dimensions")
|
| 42 |
|