Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,13 +38,15 @@ def yolov9_inference(img_path, model_id, image_size, conf_threshold, iou_thresho
|
|
| 38 |
model.iou = iou_threshold
|
| 39 |
|
| 40 |
# Perform inference
|
| 41 |
-
results = model(img_path
|
| 42 |
|
| 43 |
# Optionally, show detection bounding boxes on image
|
| 44 |
output = results.render()
|
| 45 |
|
| 46 |
return output[0]
|
| 47 |
|
|
|
|
|
|
|
| 48 |
|
| 49 |
def app():
|
| 50 |
with gr.Blocks():
|
|
|
|
| 38 |
model.iou = iou_threshold
|
| 39 |
|
| 40 |
# Perform inference
|
| 41 |
+
results = model(img_path)
|
| 42 |
|
| 43 |
# Optionally, show detection bounding boxes on image
|
| 44 |
output = results.render()
|
| 45 |
|
| 46 |
return output[0]
|
| 47 |
|
| 48 |
+
|
| 49 |
+
|
| 50 |
|
| 51 |
def app():
|
| 52 |
with gr.Blocks():
|