Spaces:
Runtime error
Runtime error
nehulagrawal
commited on
Commit
•
d34a9c7
1
Parent(s):
cd236be
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def yolov8_img_inference(
|
|
46 |
model.overrides['iou']= iou_threshold
|
47 |
model.overrides['agnostic_nms'] = False # NMS class-agnostic
|
48 |
model.overrides['max_det'] = 1000
|
49 |
-
|
50 |
results = model.predict(image)
|
51 |
render = render_result(model=model, image=image, result=results[0])
|
52 |
|
|
|
46 |
model.overrides['iou']= iou_threshold
|
47 |
model.overrides['agnostic_nms'] = False # NMS class-agnostic
|
48 |
model.overrides['max_det'] = 1000
|
49 |
+
image = read_image(image)
|
50 |
results = model.predict(image)
|
51 |
render = render_result(model=model, image=image, result=results[0])
|
52 |
|