Added calls to update sliders.

This commit is contained in:
Marc-Andre Ferland 2022-11-02 10:53:48 -04:00
parent c0350e5be7
commit 045ad78bb9

View File

@ -59,6 +59,7 @@ const TASK_MAPPING = {
guidance_scale: { name: 'Guidance Scale',
setUI: (guidance_scale) => {
guidanceScaleField.value = guidance_scale
updateGuidanceScaleSlider()
},
readUI: () => parseFloat(guidanceScaleField.value),
parse: (val) => parseFloat(val)
@ -66,6 +67,7 @@ const TASK_MAPPING = {
prompt_strength: { name: 'Prompt Strength',
setUI: (prompt_strength) => {
promptStrengthField.value = prompt_strength
updatePromptStrengthSlider()
},
readUI: () => parseFloat(promptStrengthField.value),
parse: (val) => parseFloat(val)