Ifeanyi commited on
Commit
648e53a
·
verified ·
1 Parent(s): 30ee13f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -26,6 +26,8 @@ def image_annotate(image:str, annotator:str) -> Image.Image:
26
  # convert YOLO output to a Supervision-compatible detections format
27
  detections = sv.Detections.from_ultralytics(result)
28
 
 
 
29
  # select annotator
30
  if annotator == "Box":
31
  box_annotator = sv.BoxAnnotator()
 
26
  # convert YOLO output to a Supervision-compatible detections format
27
  detections = sv.Detections.from_ultralytics(result)
28
 
29
+ annotated_image_show = None
30
+
31
  # select annotator
32
  if annotator == "Box":
33
  box_annotator = sv.BoxAnnotator()