Spaces:
Sleeping
Sleeping
Commit
·
5ada9bd
1
Parent(s):
74f2314
fix
Browse files
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
|