Fix typo while merging b1dd4069db to beta

This commit is contained in:
cmdr2 2022-10-17 13:04:33 +05:30
parent 6c71d95932
commit c61574b782

View File

@ -325,11 +325,11 @@ function showImages(reqBody, res, outputContainer, livePreview) {
res.output.forEach((result, index) => {
const imageData = result?.data || result?.path + '?t=' + new Date().getTime(),
imageSeed = result?.seed,
imagePrompt = req.prompt,
imageInferenceSteps = req.num_inference_steps,
imageGuidanceScale = req.guidance_scale,
imageWidth = req.width,
imageHeight = req.height;
imagePrompt = reqBody.prompt,
imageInferenceSteps = reqBody.num_inference_steps,
imageGuidanceScale = reqBody.guidance_scale,
imageWidth = reqBody.width,
imageHeight = reqBody.height;
if (!imageData.includes('/')) {
// res contained no data for the image, stop execution