hasibzunair commited on
Commit
bf5b3c7
·
1 Parent(s): 6a7d2d8

update intro

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -41,7 +41,8 @@ def preprocess_image(img_array):
41
 
42
 
43
  # Main inference function
44
- def inference(img):
 
45
  img = preprocess_image(img)
46
  img = np.expand_dims(img, 0)
47
  preds = model.predict(img)
 
41
 
42
 
43
  # Main inference function
44
+ def inference(img_path):
45
+ img = Image.open(img_path)
46
  img = preprocess_image(img)
47
  img = np.expand_dims(img, 0)
48
  preds = model.predict(img)