MCPcopy
hub / github.com/htdt/godogen / download_model

Function download_model

asset-gen/tools/tripo3d.py:120–128  ·  view source on GitHub ↗
(task_result: dict, output_path: Path)

Source from the content-addressed store, hash-verified

118
119
120def download_model(task_result: dict, output_path: Path) -> Path:
121 out = task_result.get("output", {})
122 url = out.get("pbr_model") or out.get("model") or out.get("base_model")
123 if not url:
124 raise ValueError(f"No model URL in output: {list(out.keys())}")
125 resp = requests.get(url)
126 resp.raise_for_status()
127 output_path.write_bytes(resp.content)
128 return output_path
129
130
131def image_to_glb(

Callers 5

cmd_glbFunction · 0.90
cmd_rigFunction · 0.90
cmd_retargetFunction · 0.90
cmd_resumeFunction · 0.90
image_to_glbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected