Firoj112 commited on
Commit
27d6b30
·
verified ·
1 Parent(s): 618b1eb

Update tools/detect_elements.py

Browse files
Files changed (1) hide show
  1. tools/detect_elements.py +2 -2
tools/detect_elements.py CHANGED
@@ -8,8 +8,8 @@ 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", "description": "Path to the screenshot"},
12
- "element_type": {"type": "string", "default": "table", "description": "Type: 'table' or 'textbox'"}
13
  }
14
  output_type = "string"
15
 
 
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": False, "description": "Path to the screenshot"},
12
+ "element_type": {"type": "string", "default": "table", "nullable": False, "description": "Type: 'table' or 'textbox'"}
13
  }
14
  output_type = "string"
15