Elegbede commited on
Commit
1b96c12
1 Parent(s): 44a0236

Update app.py

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