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