Skip to content

Commit ed23fa7

Browse files
committed
fix prompt
1 parent 245deae commit ed23fa7

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

hydra_vl4ai/agent/prompt/chatgpt-35/gqa/code.prompt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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:

hydra_vl4ai/agent/prompt/chatgpt-35/gqa/code_example.prompt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ E.g.,
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)

hydra_vl4ai/util/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)