Add raw accessibility-tree based prompting method (but the tokens are too large); Minor fix some small bugs
This commit is contained in:
@@ -139,6 +139,8 @@ class GPT4v_Agent:
|
||||
actions = parse_actions_from_string(response)
|
||||
elif self.action_space == "pyautogui":
|
||||
actions = parse_code_from_string(response)
|
||||
else:
|
||||
raise ValueError("Invalid action space: " + self.action_space)
|
||||
|
||||
# add action into the trajectory
|
||||
self.trajectory.append({
|
||||
|
||||
Reference in New Issue
Block a user