alibidaran commited on
Commit
8c76dd9
·
verified ·
1 Parent(s): 7ca0c88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,6 +8,7 @@ import glob
8
  model = YOLO('Dental_model.pt')
9
  pic_files = glob.glob('*.jpg')
10
  names = model.model.names
 
11
 
12
  def detect_objects(image):
13
  image1 = image.copy()
@@ -16,7 +17,6 @@ def detect_objects(image):
16
  boxes = results[0].boxes.xyxy.cpu()
17
  annotator = Annotator(image, line_width=3)
18
  annotator1 = Annotator(image1, line_width=3)
19
- cloud_sdk = '<iframe src="https://cloudhand-sdk-xlsh.vercel.app/" width="100%" height="600px" style="border:none;"></iframe>'
20
 
21
  for box, cls in zip(boxes, classes):
22
  annotator.box_label(box, label=names[int(cls)], color=colors(int(cls)))
 
8
  model = YOLO('Dental_model.pt')
9
  pic_files = glob.glob('*.jpg')
10
  names = model.model.names
11
+ cloud_sdk = '<iframe src="https://cloudhand-sdk-xlsh.vercel.app/" width="100%" height="600px" style="border:none;"></iframe>'
12
 
13
  def detect_objects(image):
14
  image1 = image.copy()
 
17
  boxes = results[0].boxes.xyxy.cpu()
18
  annotator = Annotator(image, line_width=3)
19
  annotator1 = Annotator(image1, line_width=3)
 
20
 
21
  for box, cls in zip(boxes, classes):
22
  annotator.box_label(box, label=names[int(cls)], color=colors(int(cls)))