{% if sg_has_lora %} {# ----------------------------------------------------------------------- Strengths Gallery partial Required context variables (set via {% set %} before {% include %}): sg_entity — the entity model object sg_category — URL category string, e.g. 'outfits', 'characters' sg_has_lora — boolean: entity has a non-empty lora_name ----------------------------------------------------------------------- #} {% set sg_lora = sg_entity.data.lora if sg_entity.data.lora else {} %} {% set sg_weight_min = sg_lora.get('lora_weight_min', sg_lora.get('lora_weight', 0.0)) %} {% set sg_weight_max = sg_lora.get('lora_weight_max', sg_lora.get('lora_weight', 1.0)) %}