Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

1.7 KB
Raw Blame
{
  "id": "44dbac63-32bf-4cd2-81b4-ad6803ec812d-WOS",
  "snapshot": "microsoft_paint",
  "instruction": "Change the canvas size to 800x600 pixels.",
  "source": "Microsoft Corporation",
  "config": [
    {
      "type": "open",
      "parameters": {
        "path": "C:\\Users\\Docker\\appdata\\Local\\Microsoft\\WindowsApps\\Microsoft.Paint_8wekyb3d8bbwe\\mspaint.exe"
      }
    },
    {
      "type": "sleep",
      "parameters": {
        "seconds": 1
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": ["microsoft_paint"],
  "evaluator": {
    "postconfig": [
      {
        "type": "activate_window",
        "parameters": {
          "window_name": "Untitled - Paint",
          "strict": true
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 1
        }
      },
      {
        "type": "execute",
        "parameters": {
          "command": [
            "python",
            "-c",
            "import pyautogui; import time; from PIL import Image;import subprocess; pyautogui.hotkey('ctrl', 's'); time.sleep(1); pyautogui.typewrite(r'\"C:\\Users\\Docker\\Downloads\\CanvasSize.png\"'); time.sleep(2); pyautogui.press('enter'); time.sleep(2); subprocess.call(\"taskkill /f /im mspaint.exe\");"
          ]
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 1
        }
      }
    ],
    "func": "exact_match",
    "result": {
      "type": "image_dimension_matches_input",
      "filepath": "C:\\Users\\Docker\\Downloads\\CanvasSize.png",
      "width": "800",
      "height": "600"
    },
    "expected": {
      "type": "rule",
      "rules": {
        "expected": true
      }
    }
  }
}