Download utils/image-load-path.js from ilhamdev/quote-api: direct link, hf CLI and curl.
- Browser
- Download file 175 Bytes
-
https://huggingface.co/spaces/ilhamdev/quote-api/resolve/b82cd220a9609d7bb19e7f3e5d83fa4fd0107846/utils/image-load-path.js
- Command line
-
hf download hf://spaces/ilhamdev/quote-api@b82cd220a9609d7bb19e7f3e5d83fa4fd0107846/utils/image-load-path.js
-
curl -L -o image-load-path.js https://huggingface.co/spaces/ilhamdev/quote-api/resolve/b82cd220a9609d7bb19e7f3e5d83fa4fd0107846/utils/image-load-path.js
175 Bytes
| const fs = require('fs') | |
| module.exports = (path) => { | |
| return new Promise((resolve, reject) => { | |
| fs.readFile(path, (_error, data) => { | |
| resolve(data) | |
| }) | |
| }) | |
| } | |