Skip to content

Commit

Permalink
Merge branch 'eval-for-new-labelizer' of github.com:lavague-ai/LaVagu…
Browse files Browse the repository at this point in the history
…e into eval-for-new-labelizer
  • Loading branch information
turboNinja2 committed Aug 29, 2024
2 parents 80cb83d + 4ffd760 commit 3adbf95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lavague-core/lavague/core/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ def evaluate(
print("ERROR: ", i)
traceback.print_exc()
nodes = []
if driver:
driver.destroy()
nodes = "\n".join(nodes)
results.at[i, "result_nodes"] = nodes
results.at[i, "recall"] = (
Expand Down Expand Up @@ -208,8 +210,6 @@ def evaluate(
print("ERROR: ", i)
traceback.print_exc()
test_action = FAIL_ACTION
if driver:
driver.destroy()
results.at[i, "correct_action"] = action["name"] == test_action["name"]
results.at[i, "correct_xpath"] = (
normalize_xpath(action["args"]["xpath"])
Expand Down

0 comments on commit 3adbf95

Please sign in to comment.