File tree Expand file tree Collapse file tree
agent/prompt/chatgpt-35/gqa Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ class ImagePatch:
4040
4141 if left is None and right is None and upper is None and lower is None:
4242 self.cropped_image = image
43- self.left = 0
44- self.lower = 0
43+ self.left = 0
4544 self.right = image.shape[2] # width
4645 self.upper = image.shape[1] # height
4746 else:
Original file line number Diff line number Diff line change 3939 Output:
4040 # Check for lemon existence
4141 has_lemon = image_patch.exists("lemon")
42- check for bagels existence
42+ # check for bagels existence
4343 has_begel = image_patch.exists("bagels")
4444 # get final answer, either has_lemon or has_begel is true return 'yes'
4545 final_answer = bool_to_yesno(has_lemon or has_begel)
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def get_description_from_executed_variable_list(executed_variable_list: list[str
7070 one_variable = local_variables [variable_name ]
7171 description .append (f'{ variable_name } : { one_variable } ' )
7272 if isinstance (one_variable , ImagePatch ):
73- description [- 1 ] += f' patch name: { one_variable .image_name } ; '
73+ description [- 1 ] += f', patch name: { one_variable .image_name } '
7474 return description
7575
7676
You can’t perform that action at this time.
0 commit comments