From 045ad78bb92450a03966d161e001fbda59dc785d Mon Sep 17 00:00:00 2001 From: Marc-Andre Ferland Date: Wed, 2 Nov 2022 10:53:48 -0400 Subject: [PATCH] Added calls to update sliders. --- ui/media/js/dnd.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/media/js/dnd.js b/ui/media/js/dnd.js index f38c08a3..57f05cec 100644 --- a/ui/media/js/dnd.js +++ b/ui/media/js/dnd.js @@ -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)