MCPcopy
hub / github.com/lightningpixel/modly / progress_cb

Function progress_cb

api/runner.py:166–167  ·  view source on GitHub ↗
(pct: int, step: str = "")

Source from the content-addressed store, hash-verified

164 gen.outputs_dir.mkdir(parents=True, exist_ok=True)
165
166 def progress_cb(pct: int, step: str = "") -> None:
167 send({"type": "progress", "id": rid, "pct": pct, "step": step})
168
169 try:
170 output_path = gen.generate(image_bytes, params, progress_cb, cancel_evt)

Callers

nothing calls this directly

Calls 1

sendFunction · 0.85

Tested by

no test coverage detected