asalhi85 commited on
Commit
6d2fbd1
1 Parent(s): 1bfb35d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def inference(image_url, image, min_score):
49
  im = np.frombuffer(r.content, dtype="uint8")
50
  im = cv2.imdecode(im, cv2.IMREAD_COLOR)
51
  else:
52
- im = cv2.imread(image.name)
53
  # Model expect BGR!
54
  #im = image[:,:,::-1]
55
 
 
49
  im = np.frombuffer(r.content, dtype="uint8")
50
  im = cv2.imdecode(im, cv2.IMREAD_COLOR)
51
  else:
52
+ im = cv2.imread(image)
53
  # Model expect BGR!
54
  #im = image[:,:,::-1]
55