veronhii commited on
Commit
fc466bc
·
1 Parent(s): 03cf1d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -16,7 +16,7 @@ def normalize_image(img):
16
 
17
  def predict_top_classes(img, num_top_classes=5):
18
  img = img.convert('RGB')
19
- img_data = _normalize_img(img)
20
  x = np.array(img_data)
21
  x = np.expand_dims(x, axis=0)
22
  temp = model.predict(x)
 
16
 
17
  def predict_top_classes(img, num_top_classes=5):
18
  img = img.convert('RGB')
19
+ img_data = normalize_image(img)
20
  x = np.array(img_data)
21
  x = np.expand_dims(x, axis=0)
22
  temp = model.predict(x)