wangjin2000 commited on
Commit
061f56b
·
verified ·
1 Parent(s): 76c4600

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)