Default value for hypernetworkStrength

Don't fail when the Hypernetwork Strength text input field is empty
This commit is contained in:
JeLuF 2023-05-04 00:05:11 +02:00
parent 4d31078579
commit 06c990e94d

View File

@ -692,6 +692,9 @@ function makeImage() {
if (guidanceScaleField.value == "") {
guidanceScaleField.value = guidanceScaleSlider.value / 10
}
if (hypernetworkStrengthField.value == "") {
hypernetworkStrengthField.value = hypernetworkStrengthSlider.value / 100
}
const taskTemplate = getCurrentUserRequest()
const newTaskRequests = getPrompts().map((prompt) =>
Object.assign({}, taskTemplate, {