Ifeanyi commited on
Commit
6b98b8f
·
verified ·
1 Parent(s): 9899761

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -91,9 +91,9 @@ def image_annotate(image:str, annotator:str) -> Image.Image:
91
 
92
  elif annotator == "Label":
93
  labels = [
94
- f"{class_name} {confidence:.2f}"
95
- for class_name, confidence
96
- in zip(detections.class_name, detections.confidence)
97
  ]
98
 
99
  rich_label_annotator = sv.RichLabelAnnotator(
 
91
 
92
  elif annotator == "Label":
93
  labels = [
94
+ f"{class_id} {confidence:.2f}"
95
+ for class_id, confidence
96
+ in zip(detections.class_id, detections.confidence)
97
  ]
98
 
99
  rich_label_annotator = sv.RichLabelAnnotator(