hasibzunair commited on
Commit
1401578
·
1 Parent(s): 8c6e8ab

update intro

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