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

Function call_sync_api

scripts/server/post_sync_t2i_presigned.py:96–98  ·  view source on GitHub ↗
(args: argparse.Namespace, payload: Dict[str, Any])

Source from the content-addressed store, hash-verified

94
95def call_sync_api(args: argparse.Namespace, payload: Dict[str, Any]) -> requests.Response:
96 endpoint = f"{args.url.rstrip('/')}/v1/tasks/image/sync?timeout_seconds={args.timeout_seconds}&poll_interval_seconds={args.poll_interval_seconds}"
97 return requests.post(endpoint, json=payload, timeout=args.timeout_seconds + 30)
98
99
100def download_uploaded_image(download_url: str, output_path: str, timeout_seconds: int) -> Path:
101 response = requests.get(download_url, timeout=timeout_seconds)

Callers 1

mainFunction · 0.70

Calls 1

postMethod · 0.80

Tested by

no test coverage detected