Enhance LoraCard with preset controls for usage tips and update modal styles

This commit is contained in:
Will Miao
2025-02-19 22:33:34 +08:00
parent d7b3ba6d67
commit 57ca4a275d
3 changed files with 178 additions and 24 deletions

View File

@@ -15,7 +15,7 @@ class LoraMetadata:
sha256: str # SHA256 hash of the file
base_model: str # Base model (SD1.5/SD2.1/SDXL/etc.)
preview_url: str # Preview image URL
usage_tips: str = "" # Usage tips for the model
usage_tips: str = "{}" # Usage tips for the model, json string
notes: str = "" # Additional notes
from_civitai: bool = True # Whether the lora is from Civitai
civitai: Optional[Dict] = None # Civitai API data if available