Mlaana commited on
Commit
f7b2c15
·
1 Parent(s): 74261ab
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ model = tf.keras.models.load_model("best_model_mobilenetv2_finetune.h5")
8
  def process(img):
9
  img = img.resize((224,224))
10
  img = np.array(img) / 255.0
11
- return np.expand_dims(img, axis=1)
12
 
13
  def predict(img):
14
  img = process(img)
 
8
  def process(img):
9
  img = img.resize((224,224))
10
  img = np.array(img) / 255.0
11
+ return np.expand_dims(img, axis=0)
12
 
13
  def predict(img):
14
  img = process(img)