Generate an image from a single word. To generate pictures for the dictionary.
[word] --> GPT --> [image prompt] --> DALL-E, Stable Difusion --> [image]
$ npm install
$ npm build
$ mkdir data
$ export OPENAI_API_KEY=...
$ export DIFFUSIOn_API_KEY=...
$ node ./dest/index.js [word]
--file [word list file]
--image {stable-diffusion,dall-e,s,d}
--lang {en,ja}
--debug
--help
$ node ./dest/index.js clavicle
data/clavicle.txt
gpt-3.5-turbo
dall-e
The doctor examined the x-ray and found that the patient had fractured their clavicle in a skiing accident.
$ node ./dest/index.js megalomaniac
data/megalomaniac.txt
gpt-3.5-turbo
dall-e
The megalomaniac CEO insisted on having his own personal elevator installed in the company's headquarters.