sowbaranika13 commited on
Commit
027b915
1 Parent(s): c3f03ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ model_path = r"inceptionv3_class.h5"
20
  hierarchical_models['class'] = load_model(model_path)
21
 
22
  def load_and_preprocess_image(image, target_size=(224, 224)):
23
- image = load_img(img_path, target_size=(224, 224))
24
  img_array = img_to_array(image)
25
  img_array = np.expand_dims(img_array, axis=0)
26
  img_array = tf.keras.applications.mobilenet_v2.preprocess_input(img_array)
 
20
  hierarchical_models['class'] = load_model(model_path)
21
 
22
  def load_and_preprocess_image(image, target_size=(224, 224)):
23
+ image = load_img(image, target_size=(224, 224))
24
  img_array = img_to_array(image)
25
  img_array = np.expand_dims(img_array, axis=0)
26
  img_array = tf.keras.applications.mobilenet_v2.preprocess_input(img_array)