forked from extern/easydiffusion
Added calls to update sliders.
This commit is contained in:
parent
c0350e5be7
commit
045ad78bb9
@ -59,6 +59,7 @@ const TASK_MAPPING = {
|
|||||||
guidance_scale: { name: 'Guidance Scale',
|
guidance_scale: { name: 'Guidance Scale',
|
||||||
setUI: (guidance_scale) => {
|
setUI: (guidance_scale) => {
|
||||||
guidanceScaleField.value = guidance_scale
|
guidanceScaleField.value = guidance_scale
|
||||||
|
updateGuidanceScaleSlider()
|
||||||
},
|
},
|
||||||
readUI: () => parseFloat(guidanceScaleField.value),
|
readUI: () => parseFloat(guidanceScaleField.value),
|
||||||
parse: (val) => parseFloat(val)
|
parse: (val) => parseFloat(val)
|
||||||
@ -66,6 +67,7 @@ const TASK_MAPPING = {
|
|||||||
prompt_strength: { name: 'Prompt Strength',
|
prompt_strength: { name: 'Prompt Strength',
|
||||||
setUI: (prompt_strength) => {
|
setUI: (prompt_strength) => {
|
||||||
promptStrengthField.value = prompt_strength
|
promptStrengthField.value = prompt_strength
|
||||||
|
updatePromptStrengthSlider()
|
||||||
},
|
},
|
||||||
readUI: () => parseFloat(promptStrengthField.value),
|
readUI: () => parseFloat(promptStrengthField.value),
|
||||||
parse: (val) => parseFloat(val)
|
parse: (val) => parseFloat(val)
|
||||||
|
Loading…
Reference in New Issue
Block a user