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
# docs: test="docs" prelude="spacesd,spacesd-vars"
import asyncio

import cua


async def main():
    guest = await cua.embedded().spacesd(URL, TOKEN)
    sent = await guest.upload("/tmp/note.txt", b"hi from the host", None)
    back = await guest.download("/tmp/note.txt")
    print([sent.size, back])
    # [16, b'hi from the host']


asyncio.run(main())