This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { writeFile } from 'fs/promises' | |
const DRAW_THINGS_URL = 'http://127.0.0.1:7860/sdapi/v1/txt2img' | |
const BATCH_COUNT = 5 | |
const IMG_SIZE = 512 | |
const MAX_FILE_NAME_LEN = 30 | |
const prompt = 'bunch of carrots' | |
const params = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream backend { | |
server 127.0.0.1:3000; | |
} | |
server { | |
listen 80; | |
access_log /var/log/nginx/yoursite.access.log; | |
error_log /var/log/nginx/yoursite.error.log; |