Firoj112 commited on
Commit
a21962d
·
verified ·
1 Parent(s): abc76d6

Update tools/search_item_ctrl_f.py

Browse files
Files changed (1) hide show
  1. tools/search_item_ctrl_f.py +3 -3
tools/search_item_ctrl_f.py CHANGED
@@ -11,10 +11,10 @@ class SearchItemCtrlFTool(Tool):
11
  nth_result: Which occurrence to jump to (default: 1)
12
  """
13
  inputs = {
14
- 'text': {'type': 'str', 'description': 'The text to search for'},
15
- 'nth_result': {'type': 'int', 'description': 'Which occurrence to jump to (default: 1)'}
16
  }
17
- output_type = "str"
18
 
19
  def forward(self, text: str, nth_result: int = 1, driver: Any = None) -> str:
20
  if not driver:
 
11
  nth_result: Which occurrence to jump to (default: 1)
12
  """
13
  inputs = {
14
+ 'text': {'type': 'string', 'description': 'The text to search for'},
15
+ 'nth_result': {'type': 'integer', 'description': 'Which occurrence to jump to (default: 1)'}
16
  }
17
+ output_type = "string"
18
 
19
  def forward(self, text: str, nth_result: int = 1, driver: Any = None) -> str:
20
  if not driver: