Update app.py
Browse filesIncrease threshold
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def detect_objects(image_url, uploaded_image, text_prompt):
|
|
| 46 |
results = processor.post_process_grounded_object_detection(
|
| 47 |
outputs,
|
| 48 |
inputs.input_ids,
|
| 49 |
-
threshold=0.
|
| 50 |
target_sizes=[image.size[::-1]]
|
| 51 |
)
|
| 52 |
|
|
|
|
| 46 |
results = processor.post_process_grounded_object_detection(
|
| 47 |
outputs,
|
| 48 |
inputs.input_ids,
|
| 49 |
+
threshold=0.4,
|
| 50 |
target_sizes=[image.size[::-1]]
|
| 51 |
)
|
| 52 |
|