Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -165,7 +165,7 @@ def read_and_preprocess_dicom(file_path: str):
|
|
| 165 |
|
| 166 |
# asarray() class is used to convert
|
| 167 |
# PIL images into NumPy arrays
|
| 168 |
-
numpydata = asarray(image_pil)
|
| 169 |
#convert to cv2 format
|
| 170 |
numpydata = image_pil.reshape((numpydata.shape[0], numpydata.shape[1], 1))
|
| 171 |
print("In preprocess dicom:", numpydata.shape)
|
|
|
|
| 165 |
|
| 166 |
# asarray() class is used to convert
|
| 167 |
# PIL images into NumPy arrays
|
| 168 |
+
numpydata = np.asarray(image_pil)
|
| 169 |
#convert to cv2 format
|
| 170 |
numpydata = image_pil.reshape((numpydata.shape[0], numpydata.shape[1], 1))
|
| 171 |
print("In preprocess dicom:", numpydata.shape)
|