-
Notifications
You must be signed in to change notification settings - Fork 107
fix coords tagging in agent_xray.py #242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -550,7 +550,7 @@ def tag_screenshot_with_action(screenshot: Image, action: str) -> Image: | |||||||
| try: | ||||||||
| coords = action[action.index("(") + 1 : action.index(")")].split(",") | ||||||||
| coords = [c.strip() for c in coords] | ||||||||
| if len(coords) != 2: | ||||||||
| if len(coords) not in [2, 3]: | ||||||||
| raise ValueError(f"Invalid coordinate format: {coords}") | ||||||||
|
||||||||
| raise ValueError(f"Invalid coordinate format: {coords}") | |
| raise ValueError(f"Invalid coordinate format: {coords}") | |
| # Only the first two coordinates (x, y) are used. The third coordinate, if present, is ignored. |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.