omarhkh commited on
Commit
e133310
1 Parent(s): 6b4fcfb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -96,7 +96,7 @@ def detect_objects2(model_name,url_input,image_input,threshold):
96
  #Visualize prediction
97
  viz_img = visualize_prediction(image, processed_outputs, threshold, model.config.id2label)
98
 
99
- return processed_outputs
100
 
101
  def set_example_image(example: list) -> dict:
102
  return gr.Image.update(value=example[0])
 
96
  #Visualize prediction
97
  viz_img = visualize_prediction(image, processed_outputs, threshold, model.config.id2label)
98
 
99
+ return processed_outputs["labels"][keep].tolist()
100
 
101
  def set_example_image(example: list) -> dict:
102
  return gr.Image.update(value=example[0])