Skip to content

Commit

Permalink
temp fix for lora
Browse files Browse the repository at this point in the history
  • Loading branch information
rbertus2000 authored Jul 22, 2023
1 parent 3da276c commit 5c794ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugins/Patrice/template-manager.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
const selectedTemplate = templateCopy[index];
templateCopy.splice(index, 1);
// render template
loraModelField.value = ""
lora_model_0.value = ""
restoreTask(selectedTemplate.task)
numOutputsTotalField.value = slideshowImagecount.value > 0 ? slideshowImagecount.value : 256
makeImage()
Expand Down Expand Up @@ -532,7 +532,7 @@
// select template
l.addEventListener("click", (event) => {
if (!editingTemplate) {
loraModelField.value = ""
lora_model_0.value = ""
restoreTask(template.task)
document.querySelector('#task-templates-editor.popup').classList.remove("active")
event.stopPropagation()
Expand All @@ -547,7 +547,7 @@
}
templateName.classList.add('lastGeneration')
lastGeneration = templateName
loraModelField.value = ""
lora_model_0.value = ""
restoreTask(template.task)
makeImage()
event.stopPropagation()
Expand All @@ -561,7 +561,7 @@
}
templateName.classList.add('lastGeneration')
lastGeneration = templateName
loraModelField.value = ""
lora_model_0.value = ""
restoreTask(template.task)
numOutputsTotalField.value = slideshowImagecount.value > 0 ? slideshowImagecount.value : 256
makeImage()
Expand Down Expand Up @@ -962,4 +962,4 @@
});
}
}
})()
})()

0 comments on commit 5c794ad

Please sign in to comment.