tonyliu404 commited on
Commit
3e1bbe3
·
verified ·
1 Parent(s): baab02c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -230,7 +230,7 @@ class_names = [
230
 
231
  def classifyImage(input_image):
232
  input_image = input_image.resize((img_size, img_size))
233
- input_array = tf.keras.utils.img_to_array(input_image) / 255.0
234
 
235
  # Add a batch dimension
236
  input_array = tf.expand_dims(input_array, 0) # (1, 224, 224, 3)
 
230
 
231
  def classifyImage(input_image):
232
  input_image = input_image.resize((img_size, img_size))
233
+ input_array = tf.keras.utils.img_to_array(input_image)
234
 
235
  # Add a batch dimension
236
  input_array = tf.expand_dims(input_array, 0) # (1, 224, 224, 3)