UNPKG

tractjs

Version:

A library for running ONNX and TensorFlow inference in the browser.

8 lines (6 loc) 204 B
export async function load(url: string): Promise<Uint8Array> { const response = await fetch(url); const buffer = await response.arrayBuffer(); const data = new Uint8Array(buffer); return data; }