Update README.md
Browse files
README.md
CHANGED
|
@@ -57,7 +57,7 @@ from PIL import Image
|
|
| 57 |
model = from_pretrained_keras("UsamaHF/Cat-dog-classification")
|
| 58 |
|
| 59 |
# Load and preprocess image
|
| 60 |
-
img = Image.open("
|
| 61 |
img_array = np.expand_dims(np.array(img).astype("float32") / 255.0, axis=0)
|
| 62 |
|
| 63 |
# Get inference function
|
|
|
|
| 57 |
model = from_pretrained_keras("UsamaHF/Cat-dog-classification")
|
| 58 |
|
| 59 |
# Load and preprocess image
|
| 60 |
+
img = Image.open("example.jpg").resize((224, 224)).convert("RGB")
|
| 61 |
img_array = np.expand_dims(np.array(img).astype("float32") / 255.0, axis=0)
|
| 62 |
|
| 63 |
# Get inference function
|