Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from tensorflow.keras.preprocessing import image
|
|
8 |
|
9 |
def predict_input_image(img_path):
|
10 |
img = Image.open(img_path)
|
11 |
-
img = img.resize((224, 224))
|
12 |
img_array = image.img_to_array(img)
|
13 |
img_array = np.expand_dims(img_array, axis=0) # Reshape the image to match the model input
|
14 |
|
@@ -27,4 +27,4 @@ iface = gr.Interface(
|
|
27 |
)
|
28 |
|
29 |
# Launch the interface
|
30 |
-
iface.launch(
|
|
|
8 |
|
9 |
def predict_input_image(img_path):
|
10 |
img = Image.open(img_path)
|
11 |
+
img = img.resize((224, 224,3))
|
12 |
img_array = image.img_to_array(img)
|
13 |
img_array = np.expand_dims(img_array, axis=0) # Reshape the image to match the model input
|
14 |
|
|
|
27 |
)
|
28 |
|
29 |
# Launch the interface
|
30 |
+
iface.launch()
|