LoRA number input min/max restored

This commit is contained in:
Attila Cseh
2025-09-05 13:21:07 +02:00
committed by psychedelicious
parent 0b605a745b
commit 4bc184ff16
2 changed files with 4 additions and 4 deletions

View File

@@ -80,7 +80,7 @@ const LoRAContent = memo(({ lora }: { lora: LoRA }) => {
onChange={handleChange}
min={DEFAULT_LORA_WEIGHT_CONFIG.sliderMin}
max={DEFAULT_LORA_WEIGHT_CONFIG.sliderMax}
step={DEFAULT_LORA_WEIGHT_CONFIG.coarseStep}
step={DEFAULT_LORA_WEIGHT_CONFIG.fineStep}
marks={DEFAULT_LORA_WEIGHT_CONFIG.marks.slice()}
defaultValue={DEFAULT_LORA_WEIGHT_CONFIG.initial}
isDisabled={!lora.isEnabled}
@@ -90,7 +90,7 @@ const LoRAContent = memo(({ lora }: { lora: LoRA }) => {
onChange={handleChange}
min={DEFAULT_LORA_WEIGHT_CONFIG.numberInputMin}
max={DEFAULT_LORA_WEIGHT_CONFIG.numberInputMax}
step={DEFAULT_LORA_WEIGHT_CONFIG.coarseStep}
step={DEFAULT_LORA_WEIGHT_CONFIG.fineStep}
w={20}
flexShrink={0}
defaultValue={DEFAULT_LORA_WEIGHT_CONFIG.initial}

View File

@@ -11,8 +11,8 @@ export const DEFAULT_LORA_WEIGHT_CONFIG = {
sliderMin: -1,
sliderMax: 2,
marks: [-1, 0, 1, 2],
numberInputMin: -1,
numberInputMax: 2,
numberInputMin: -10,
numberInputMax: 10,
fineStep: 0.01,
coarseStep: 0.05,
} as const;