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.

357 B
Raw Blame
#!/usr/bin/env bash
# Healthy when the OSWorld server answers (it needs the X display) and
# cua-spacesd listens.
set -euo pipefail
python3 - <<'PY'
import socket, sys
for port in (5000, 3211):
    s = socket.socket(); s.settimeout(2)
    try:
        s.connect(("127.0.0.1", port))
    except OSError:
        sys.exit(1)
    finally:
        s.close()
PY