The seed displayed in the UI was wrong

This commit is contained in:
cmdr2 2022-09-12 23:15:41 +05:30
parent 4444525c01
commit 30974482c5

View File

@ -671,10 +671,12 @@ async function doMakeImage(reqBody) {
for (let idx in res.output) {
let imgBody = ''
let seed = 0
try {
let imgData = res.output[idx]
imgBody = imgData.data
seed = imgData.seed
} catch (e) {
console.log(imgBody)
setStatus('request', 'invalid image', 'error')