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.

fix: typo in command executor class

[email protected]276ad0609b8a
diff --git a/libs/python/computer-server/computer_server/handlers/android.py b/libs/python/computer-server/computer_server/handlers/android.py
index f6d0b2014d..1bd9adc830 100644
--- a/libs/python/computer-server/computer_server/handlers/android.py
+++ b/libs/python/computer-server/computer_server/handlers/android.py
@@ -2,7 +2,7 @@ import asyncio
import base64
from typing import Any, Dict, List, Optional, Tuple
-from ..utils.helpers import CommandExecuctor
+from ..utils.helpers import CommandExecutor
from .base import (
BaseAccessibilityHandler,
BaseAutomationHandler,
@@ -29,7 +29,7 @@ ANDROID_KEY_MAP = {
"right": "22",
}
-adb_exec = CommandExecuctor("adb", "-s", "emulator-5554")
+adb_exec = CommandExecutor("adb", "-s", "emulator-5554")
class AndroidAccessibilityHandler(BaseAccessibilityHandler):
diff --git a/libs/python/computer-server/computer_server/utils/helpers.py b/libs/python/computer-server/computer_server/utils/helpers.py
index 64c80a0e12..d95aa840ce 100644
--- a/libs/python/computer-server/computer_server/utils/helpers.py
+++ b/libs/python/computer-server/computer_server/utils/helpers.py
@@ -48,7 +48,7 @@ def get_current_os() -> str:
raise RuntimeError(f"Failed to determine current OS: {str(e)}")
-class CommandExecuctor:
+class CommandExecutor:
def __init__(self, *base_cmd: str) -> None:
"""Initialize with a base command.