dalle
v0.1.1
Published
AI model drawing images for Node.
Downloads
14
Readme
node-dalle
AI model drawing images for Node using min(DALL·E).
Installation
npm install dalle
Linux: install node, npm, node-gyp, python3, python3-dev, g++ and make
Install Node
sudo apt install curl
curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash -
sudo apt install nodejs
Install Python
sudo apt install python3
sudo apt install python3-dev
Install Node-gyp
sudo apt install make
sudo apt install g++
sudo npm install -g node-gyp
Windows: install NodeJS and Python
Install Node-gyp if missing
npm install --global --production windows-build-tools
npm install -g node-gyp
Mac: install XCode from AppStore, NodeJS and Python
Usage
import { generateImage } from 'dalle'
async function start() {
const dataURI = await generateImage('Reddit admin touch grass')
console.log(dataURI)
}
start()
License
MIT License © 2022 Robert Soriano