Spaces:
Running
Running
Update tools/detect_elements.py
Browse files- tools/detect_elements.py +1 -1
tools/detect_elements.py
CHANGED
@@ -8,7 +8,7 @@ class DetectElementsTool(Tool):
|
|
8 |
name = "detect_elements"
|
9 |
description = "Detects table-like structures or text boxes in a screenshot using OpenCV."
|
10 |
inputs = {
|
11 |
-
"screenshot_path": {"type": "string", "nullable":
|
12 |
"element_type": {"type": "string", "default": "table", "nullable": False, "description": "Type: 'table' or 'textbox'"}
|
13 |
}
|
14 |
output_type = "string"
|
|
|
8 |
name = "detect_elements"
|
9 |
description = "Detects table-like structures or text boxes in a screenshot using OpenCV."
|
10 |
inputs = {
|
11 |
+
"screenshot_path": {"type": "string", "nullable": True, "description": "Path to the screenshot"},
|
12 |
"element_type": {"type": "string", "default": "table", "nullable": False, "description": "Type: 'table' or 'textbox'"}
|
13 |
}
|
14 |
output_type = "string"
|