Bug fixes for createTask, use task object, not UI infos.

This commit is contained in:
Marc-Andre Ferland 2022-10-09 19:59:34 -04:00
parent a27c3f09b3
commit 4e51eeb998

View File

@ -756,10 +756,10 @@ function createTask(task) {
if (task.reqBody.init_image !== undefined) {
taskConfig += `, Prompt Strength: ${task.reqBody.prompt_strength}`
}
if (useFaceCorrectionField.checked) {
if (task.reqBody.use_face_correction) {
taskConfig += `, Fix Faces: ${task.reqBody.use_face_correction}`
}
if (useUpscalingField.checked) {
if (task.reqBody.use_upscale) {
taskConfig += `, Upscale: ${task.reqBody.use_upscale}`
}