Spaces:
Running
Running
Download assets/nodefs-DD4outyn.js from rasgaard/webgpu-rag: direct link, hf CLI and curl.
- Browser
- Download file 417 Bytes
-
https://huggingface.co/spaces/rasgaard/webgpu-rag/resolve/main/assets/nodefs-DD4outyn.js
- Command line
-
hf download hf://spaces/rasgaard/webgpu-rag/assets/nodefs-DD4outyn.js
-
curl -L -o nodefs-DD4outyn.js https://huggingface.co/spaces/rasgaard/webgpu-rag/resolve/main/assets/nodefs-DD4outyn.js
417 Bytes
| import{u as o,C as i,a as n}from"./index-D_Gh0IrU.js";n();var d=class extends o{constructor(s){super(s),this.rootDir=(void 0)(s),(void 0)((void 0)(this.rootDir))||(void 0)(this.rootDir)}async init(s,e){return this.pg=s,{emscriptenOpts:{...e,preRun:[...e.preRun||[],t=>{let r=t.FS.filesystems.NODEFS;t.FS.mkdir(i),t.FS.mount(r,{root:this.rootDir},i)}]}}}async closeFs(){this.pg.Module.FS.quit()}};export{d as NodeFS}; | |