Skip to content

Instantly share code, notes, and snippets.

@zh
Created June 23, 2022 05:13
Show Gist options
  • Save zh/88c46434624b8eccd2a7483396624ad9 to your computer and use it in GitHub Desktop.
Save zh/88c46434624b8eccd2a7483396624ad9 to your computer and use it in GitHub Desktop.
waifu generation
const generateWaifu = require('waifu-generator')
async function genWaifu () {
try {
for (var i = 1; i <= 1000; i++) {
const options = {
filename: name,
path: './images'
}
await generateWaifu(options)
}
} catch (error) {
console.error('error in genWaifu: ', error)
}
}
genWaifu()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment