alanchen1115 commited on
Commit
647f0c6
·
verified ·
1 Parent(s): 7e78087

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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","Image1"],["photo/b.jpg","Image2"],
6
- ["photo/c.jpg","Image3"],["photo/d.jpg","Image4"],
7
- ["photo/e.jpg","Image5"],["photo/f.jpg","Image6"],
8
- ["photo/g.jpg","Image7"],["photo/h.jpg","Image8"]]
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):