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

Function build_payload

scripts/server/post_sync_t2i_base64.py:8–20  ·  view source on GitHub ↗
(args: argparse.Namespace)

Source from the content-addressed store, hash-verified

6
7
8def build_payload(args: argparse.Namespace) -> dict:
9 payload = {
10 "prompt": args.prompt,
11 "negative_prompt": args.negative_prompt,
12 "seed": args.seed,
13 "aspect_ratio": args.aspect_ratio,
14 "save_result_path": args.save_result_path,
15 }
16 payload = {key: value for key, value in payload.items() if value is not None}
17 if args.size is not None:
18 payload["size"] = args.size
19 return payload
20
21
22def request_t2i_sync(
23 base_url: str,

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected