Skip to content

Commit 26c4295

Browse files
committed
Update error message
1 parent 1827a6b commit 26c4295

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

evaluate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ def parse_eval_content(content):
8080
exit(1)
8181

8282

83-
def evaluate_summary_screenshot(guideline):
84-
'''Load the summary screenshot and return True or False if it meets the given guideline.'''
83+
def evaluate_final_screenshot(guideline):
84+
'''Load the final screenshot and return True or False if it meets the given guideline.'''
8585
with open(SCREENSHOT_PATH, "rb") as img_file:
8686
img_base64 = base64.b64encode(img_file.read()).decode("utf-8")
8787

@@ -116,9 +116,9 @@ def run_test_case(objective, guideline):
116116
subprocess.run(['operate', '--prompt', f'"{objective}"'], stdout=subprocess.DEVNULL)
117117

118118
try:
119-
result = evaluate_summary_screenshot(guideline)
119+
result = evaluate_final_screenshot(guideline)
120120
except(OSError):
121-
print("Couldn't open the summary screenshot")
121+
print("[Error] Couldn't open the screenshot for evaluation")
122122
return False
123123

124124
return result

0 commit comments

Comments
 (0)