Spaces:
Build error
Build error
Update captura.py
Browse files- captura.py +3 -3
captura.py
CHANGED
|
@@ -88,9 +88,9 @@ def captura_pagina(url):
|
|
| 88 |
image = Image.open(BytesIO(image_data))
|
| 89 |
|
| 90 |
# Set the fixed box_threshold and text_threshold
|
| 91 |
-
box_threshold = 0.
|
| 92 |
-
text_threshold = 0.
|
| 93 |
-
grounding_caption = "webform"
|
| 94 |
|
| 95 |
# Run the Grounding DINO model on the image
|
| 96 |
image_with_bb = run_grounding(image, grounding_caption, box_threshold, text_threshold)
|
|
|
|
| 88 |
image = Image.open(BytesIO(image_data))
|
| 89 |
|
| 90 |
# Set the fixed box_threshold and text_threshold
|
| 91 |
+
box_threshold = 0.38
|
| 92 |
+
text_threshold = 0.25
|
| 93 |
+
grounding_caption = "Find the webform in the picture of a web."
|
| 94 |
|
| 95 |
# Run the Grounding DINO model on the image
|
| 96 |
image_with_bb = run_grounding(image, grounding_caption, box_threshold, text_threshold)
|