transformers.js
0082c20d - [v4] Cache wasm files to enable fully offline usage after initial load (#1471)

Commit
139 days ago
[v4] Cache wasm files to enable fully offline usage after initial load (#1471) * added wasm cache * some refactoring of the hub.js and caching of the wasm factory * fixed comment * added string as cache return * fixes after review * Only return if match is found * Return response even if cache doesn't exist Don't throw error if we can't open cache or load file from cache, but we are able to make the request. --------- Co-authored-by: Joshua Lochner <26504141+xenova@users.noreply.github.com> Co-authored-by: Joshua Lochner <admin@xenova.com>
Author
Parents
Loading