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.

add CUA_BENCH_UI_DEBUG

Dillon DuPont07ad8dc35184
diff --git a/libs/python/bench-ui/bench_ui/child.py b/libs/python/bench-ui/bench_ui/child.py
index 1c19c12cb0..b345b68eec 100644
--- a/libs/python/bench-ui/bench_ui/child.py
+++ b/libs/python/bench-ui/bench_ui/child.py
@@ -167,7 +167,7 @@ def main():
print(json.dumps({"pid": os.getpid(), "port": port}), flush=True)
# Start GUI (blocking)
- webview.start()
+ webview.start(debug=os.environ.get("CUA_BENCH_UI_DEBUG", "false").lower() in ("true", "1"))
if __name__ == "__main__":
diff --git a/libs/python/bench-ui/pyproject.toml b/libs/python/bench-ui/pyproject.toml
index 7464c9018c..101d9a31dc 100644
--- a/libs/python/bench-ui/pyproject.toml
+++ b/libs/python/bench-ui/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "pdm.backend"
[project]
name = "cua-bench-ui"
-version = "0.3.0"
+version = "0.4.0"
description = "Lightweight webUI window controller for CUA bench using pywebview"
readme = "README.md"
authors = [