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.9 KB
Raw Blame
{
  "id": "a7d4b6c5-569b-452e-9e1d-ffdb3d431d15-WOS",
  "snapshot": "notepad",
  "instruction": "Please open Notepad, load the file \"largefile.txt\" from the Documents folder, and search for the word \"example\", count all instances. Store the number of \"example\" counts (and nothing else) in a file named \"example_count.txt\" under Documents folder",
  "source": "",
  "_comments": "",
  "config": [
    {
      "type": "download",
      "parameters": {
        "files": [
          {
            "url": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/notepad/a7d4b6c5-569b-452e-9e1d-ffdb3d431d15-WOS/config/largefile.txt",
            "path": "C:\\Users\\Docker\\Documents\\largefile.txt"
          }
        ]
      }
    }
  ],
  "trajectory": "trajectories/",
  "related_apps": ["notepad"],
  "evaluator": {
    "postconfig": [
      {
        "type": "open",
        "parameters": {
          "path": "C:\\Users\\Docker\\Documents\\largefile.txt"
        }
      },
      {
        "type": "open",
        "parameters": {
          "path": "C:\\Users\\Docker\\Documents\\example_count.txt"
        }
      },
      {
        "type": "sleep",
        "parameters": {
          "seconds": 0.5
        }
      },
      {
        "type": "execute",
        "parameters": {
          "command": [
            "python",
            "-c",
            "import pyautogui; import time; pyautogui.hotkey('ctrl', 's'); time.sleep(0.5); "
          ]
        }
      }
    ],
    "func": "compare_text_file",
    "result": {
      "type": "vm_file",
      "path": "C:\\Users\\Docker\\Documents\\example_count.txt",
      "dest": "example_count.txt"
    },
    "expected": {
      "type": "cloud_file",
      "path": "https://raw.githubusercontent.com/rogeriobonatti/winarenafiles/main/task_files/notepad/a7d4b6c5-569b-452e-9e1d-ffdb3d431d15-WOS/eval/example_count_gold.txt",
      "dest": "example_count_gold.txt"
    }
  }
}