Skip to content

Commit

Permalink
eval improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak-akkil committed Jun 7, 2024
1 parent 4399ab1 commit 52f4fec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ae/core/skills/get_dom_with_content_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ async def get_dom_with_content_type(
if content_type == 'all_fields':
user_success_message = "Fetched all the fields in the DOM"
extracted_data = await do_get_accessibility_info(page, only_input_fields=False)
if extracted_data is None:
return "Could not fetch input fields. Please consider trying with content_type all_fields."
elif content_type == 'input_fields':
logger.debug('Fetching DOM for input_fields')
extracted_data = await do_get_accessibility_info(page, only_input_fields=True)
if extracted_data is None:
return "Could not fetch input fields. Please consider trying with content_type all_fields."
user_success_message = "Fetched only input fields in the DOM"
elif content_type == 'text_only':
# Extract text from the body or the highest-level element
Expand Down
10 changes: 7 additions & 3 deletions test/tasks/test.json
Original file line number Diff line number Diff line change
Expand Up @@ -573,9 +573,13 @@
"string_match"
],
"reference_answers": {
"must_include": [
"566"
]
"some_matches": {
"phrases": [
"566",
"567"
],
"min_required": 1
}
},
"reference_url": "",
"program_html": [],
Expand Down

0 comments on commit 52f4fec

Please sign in to comment.