MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / save_result

Function save_result

scripts/server/post_sync_t2i_base64.py:36–40  ·  view source on GitHub ↗
(content: bytes, output_path: str)

Source from the content-addressed store, hash-verified

34
35def save_result(content: bytes, output_path: str) -> Path:
36 output = Path(output_path)
37 output.parent.mkdir(parents=True, exist_ok=True)
38 output.write_bytes(content)
39 return output
40
41
42def main() -> None:
43 parser = argparse.ArgumentParser(description="Call /v1/tasks/sync for T2I and save final image.")

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected