Skip to content

Commit

Permalink
Add to Power Prompt widgets. Fixes #396
Browse files Browse the repository at this point in the history
  • Loading branch information
rgthree committed Dec 23, 2024
1 parent 53724bf commit 4fc1d92
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
3 changes: 2 additions & 1 deletion py/power_prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ def INPUT_TYPES(cls): # pylint: disable = invalid-name, missing-function-docstr
return {
'required': {
'prompt': ('STRING', {
'multiline': True
'multiline': True,
'dynamicPrompts': True
}),
},
'optional': {
Expand Down
2 changes: 1 addition & 1 deletion py/power_prompt_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def INPUT_TYPES(cls): # pylint: disable = invalid-name, missing-function-docstr
SAVED_PROMPTS_CONTENT=[]
return {
'required': {
'prompt': ('STRING', {'multiline': True}),
'prompt': ('STRING', {'multiline': True, 'dynamicPrompts': True}),
},
'optional': {
"opt_clip": ("CLIP", ),
Expand Down
6 changes: 4 additions & 2 deletions py/sdxl_power_prompt_postive.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ def INPUT_TYPES(cls): # pylint: disable = invalid-name, missing-function-docstr
return {
'required': {
'prompt_g': ('STRING', {
'multiline': True
'multiline': True,
'dynamicPrompts': True
}),
'prompt_l': ('STRING', {
'multiline': True
'multiline': True,
'dynamicPrompts': True
}),
},
'optional': {
Expand Down
6 changes: 4 additions & 2 deletions py/sdxl_power_prompt_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ def INPUT_TYPES(cls): # pylint: disable = invalid-name, missing-function-docstr
return {
'required': {
'prompt_g': ('STRING', {
'multiline': True
'multiline': True,
'dynamicPrompts': True
}),
'prompt_l': ('STRING', {
'multiline': True
'multiline': True,
'dynamicPrompts': True
}),
},
'optional': {
Expand Down

0 comments on commit 4fc1d92

Please sign in to comment.