UNPKG

@huggingface/gguf

Version:

a GGUF parser that works on remotely hosted files

7 lines (4 loc) 271 B
const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined"; const isWebWorker = typeof self === "object" && self.constructor && self.constructor.name === "DedicatedWorkerGlobalScope"; export const isBackend = !isBrowser && !isWebWorker;