Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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])
|