starpreeda commited on
Commit
c3ef54d
·
verified ·
1 Parent(s): 108db48

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -68,7 +68,7 @@ def predict_mri(image_path):
68
  img = Image.open(image_path).convert('RGB')
69
  img = img.resize((224, 224))
70
  img_array = np.array(img, dtype=np.float32)
71
- img_array = np.expand_dims(img_array, axis=0) # เพิ่ม Batch Dimension
72
 
73
  predictions = model.predict(img_array)
74
  predicted_class = class_names[np.argmax(predictions[0])]
 
68
  img = Image.open(image_path).convert('RGB')
69
  img = img.resize((224, 224))
70
  img_array = np.array(img, dtype=np.float32)
71
+ img_array = np.expand_dims(img_array, axis=0)
72
 
73
  predictions = model.predict(img_array)
74
  predicted_class = class_names[np.argmax(predictions[0])]