Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,10 @@ import gradio as gr
|
|
2 |
from ultralytics import YOLO
|
3 |
import cv2
|
4 |
|
5 |
-
examples=[["photo/a.jpg"
|
6 |
-
["photo/c.jpg"
|
7 |
-
["photo/e.jpg"
|
8 |
-
["photo/g.jpg"
|
9 |
|
10 |
|
11 |
def detect_objects_on_image(image_path, conf_threshold, iou_threshold):
|
|
|
2 |
from ultralytics import YOLO
|
3 |
import cv2
|
4 |
|
5 |
+
examples=[["photo/a.jpg"],["photo/b.jpg"],
|
6 |
+
["photo/c.jpg"],["photo/d.jpg"],
|
7 |
+
["photo/e.jpg"],["photo/f.jpg"],
|
8 |
+
["photo/g.jpg"],["photo/h.jpg"]]
|
9 |
|
10 |
|
11 |
def detect_objects_on_image(image_path, conf_threshold, iou_threshold):
|