Download app/src/pi/browser-host.mjs from Mike0021/MiniCPM5-2B-WebGPU-Pi-HTTP: direct link, hf CLI and curl.
- Browser
- Download file 329 Bytes
-
https://huggingface.co/spaces/Mike0021/MiniCPM5-2B-WebGPU-Pi-HTTP/resolve/main/app/src/pi/browser-host.mjs
- Command line
-
hf download hf://spaces/Mike0021/MiniCPM5-2B-WebGPU-Pi-HTTP/app/src/pi/browser-host.mjs
-
curl -L -o browser-host.mjs https://huggingface.co/spaces/Mike0021/MiniCPM5-2B-WebGPU-Pi-HTTP/resolve/main/app/src/pi/browser-host.mjs
329 Bytes
| // Only Pi's terminal modules import this host adapter. No global Node shim. | |
| export { Buffer } from 'buffer'; | |
| export const performance = globalThis.performance; | |
| export const browserProcess = { | |
| env: { TERM: 'xterm-256color', TERM_PROGRAM: 'xtermjs' }, | |
| platform: 'browser', | |
| nextTick: callback => queueMicrotask(callback), | |
| }; | |