Raghvender commited on
Commit
5ada9bd
·
1 Parent(s): 74f2314
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ model = YOLO('custom_model.pt')
7
 
8
  def infer(path):
9
  img = cv2.imread(path)
10
- output = model(img)
11
  res = output[0].cpu().numpy()
12
 
13
  # Extract bbox, cls id and conf
 
7
 
8
  def infer(path):
9
  img = cv2.imread(path)
10
+ output = model(source=img)
11
  res = output[0].cpu().numpy()
12
 
13
  # Extract bbox, cls id and conf