Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def run_grounding(input_image, grounding_caption, box_threshold, text_threshold)
|
|
| 43 |
results = processor.post_process_grounded_object_detection(
|
| 44 |
outputs,
|
| 45 |
inputs.input_ids,
|
| 46 |
-
|
| 47 |
text_threshold=text_threshold,
|
| 48 |
target_sizes=[init_image.size[::-1]]
|
| 49 |
)
|
|
|
|
| 43 |
results = processor.post_process_grounded_object_detection(
|
| 44 |
outputs,
|
| 45 |
inputs.input_ids,
|
| 46 |
+
threshold=box_threshold,
|
| 47 |
text_threshold=text_threshold,
|
| 48 |
target_sizes=[init_image.size[::-1]]
|
| 49 |
)
|