Archived
refactored workflow parameters to include a component property for the frontend, updated docs
This commit is contained in:
1 parent
59ff3365e9
commit
37e901bc30
4 files changed
+236
-52
No files matched your search
@@ -15,7 +15,7 @@ sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
|
||||
from base import BaseWorkflow
|
||||
from parameters import (
|
||||
Prompt, NegativePrompt, Checkpoint, Seed, Sampler, Scheduler,
|
||||
Width, Height, Lora
|
||||
Width, Height, Loras
|
||||
)
|
||||
|
||||
# ============================================
|
||||
@@ -42,7 +42,7 @@ class WorkflowParams(BaseModel):
|
||||
prompt: Prompt
|
||||
negativePrompt: NegativePrompt = "text, watermark"
|
||||
checkpoints: Checkpoint
|
||||
loras: List[Lora] = [] # Generator infers params from Lora class
|
||||
loras: Loras # Uses shared type with category: models
|
||||
sampler: Sampler = "euler"
|
||||
scheduler: Scheduler = "normal"
|
||||
seed: Seed # Required, no default
|
||||
|
||||
Reference in new issue
Block a user