Ahsen Khaliq commited on
Commit
c8b967a
1 Parent(s): 52504c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -18,7 +18,7 @@ import cv2 as cv
18
  import numpy as np
19
 
20
  def inference(img):
21
- image = numpy.array(img)
22
  image = image[:, :, ::-1].copy()
23
  image = cv.resize(image, dsize=(side_length, side_length))
24
  x = cv.cvtColor(image, cv.COLOR_BGR2RGB)
 
18
  import numpy as np
19
 
20
  def inference(img):
21
+ image = np.array(img)
22
  image = image[:, :, ::-1].copy()
23
  image = cv.resize(image, dsize=(side_length, side_length))
24
  x = cv.cvtColor(image, cv.COLOR_BGR2RGB)