Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def inference(input_img, conf_threshold, iou_threshold):
|
|
| 13 |
model.conf = conf_threshold
|
| 14 |
model.iou = iou_threshold
|
| 15 |
# Perform inference
|
| 16 |
-
results = model(
|
| 17 |
|
| 18 |
# Optionally, show detection bounding boxes on image
|
| 19 |
output = results.render()
|
|
|
|
| 13 |
model.conf = conf_threshold
|
| 14 |
model.iou = iou_threshold
|
| 15 |
# Perform inference
|
| 16 |
+
results = model(input_img, size=image_size)
|
| 17 |
|
| 18 |
# Optionally, show detection bounding boxes on image
|
| 19 |
output = results.render()
|