File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments