mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-12-24 16:08:55 +01:00
Show the final output, if it was sent in a single streaming packet
This commit is contained in:
parent
7a540f2a88
commit
74a9c46f08
@ -669,7 +669,9 @@ async function doMakeImage(reqBody, batchCount) {
|
|||||||
try {
|
try {
|
||||||
let stepUpdate = JSON.parse(jsonStr)
|
let stepUpdate = JSON.parse(jsonStr)
|
||||||
|
|
||||||
if (stepUpdate.step !== undefined) {
|
if (stepUpdate.step === undefined) {
|
||||||
|
finalJSON += jsonStr
|
||||||
|
} else {
|
||||||
let batchSize = parseInt(reqBody['num_inference_steps'])
|
let batchSize = parseInt(reqBody['num_inference_steps'])
|
||||||
let overallStepCount = stepUpdate.step + batchesDone * batchSize
|
let overallStepCount = stepUpdate.step + batchesDone * batchSize
|
||||||
let totalSteps = batchCount * batchSize
|
let totalSteps = batchCount * batchSize
|
||||||
|
Loading…
Reference in New Issue
Block a user