(task_result: dict, output_path: Path)
| 118 | |
| 119 | |
| 120 | def 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 | |
| 131 | def image_to_glb( |
no outgoing calls
no test coverage detected