Skip to content

Commit

Permalink
Update horde.js
Browse files Browse the repository at this point in the history
  • Loading branch information
slimerplanet committed Oct 19, 2023
1 parent 8b76b9f commit 4fe4366
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/horde.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,15 @@ function horde_AddLora(name, id, tokens=[]) {
label.textContent = 'Strength: ' + input.value;
let _lora = horde_loras.find(lora => lora.name === id.toString());

if(_lora == null){
_lora = {
"name": id.toString(),
"model": 1,
"clip": 1,
}
horde_loras.push(_lora);
}

_lora.model = parseFloat(input.value);
_lora.clip = parseFloat(input.value);
})
Expand Down

0 comments on commit 4fe4366

Please sign in to comment.