Spaces:
Runtime error
Runtime error
Commit History
-
Add tools/space.py for driving the deployed Space from a terminal
Replaces copy-pasting container logs out of the web UI. Wraps the Space API: status (runtime stage/hardware), logs (run or build, filtered to [nv-generate] by default), timings, wait (block until the READY banner appears or the stage goes terminal), and generate (fire one generation through the Gradio API). The log endpoint replays its backlog and then holds the connection open forever, so reads are bounded by wall time rather than EOF -- curl --max-time does this predictably where urllib's socket timeouts did not surface partial stream data. generate consumes real ZeroGPU quota, so it prompts unless given -y. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>3e2ec7a