Martin Tomov commited on
Commit
9879b4f
·
verified ·
1 Parent(s): f06849a
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -187,7 +187,7 @@ def detections_to_json(detections):
187
  return detections_list
188
 
189
  def process_image(image, include_json):
190
- labels = [insect]
191
  original_image, detections = grounded_segmentation(image, labels, threshold=0.3, polygon_refinement=True)
192
  yellow_background_with_insects = create_yellow_background_with_insects(np.array(original_image), detections)
193
  if include_json:
 
187
  return detections_list
188
 
189
  def process_image(image, include_json):
190
+ labels = ["insect"]
191
  original_image, detections = grounded_segmentation(image, labels, threshold=0.3, polygon_refinement=True)
192
  yellow_background_with_insects = create_yellow_background_with_insects(np.array(original_image), detections)
193
  if include_json: