add negative prompt

This commit is contained in:
Qing
2022-11-08 21:58:48 +08:00
parent b7d504cba6
commit 8c2904c9c8
13 changed files with 176 additions and 8 deletions

View File

@@ -9,6 +9,7 @@ export default async function inpaint(
settings: Settings,
croperRect: Rect,
prompt?: string,
negativePrompt?: string,
sizeLimit?: string,
seed?: number
) {
@@ -34,6 +35,10 @@ export default async function inpaint(
)
fd.append('prompt', prompt === undefined ? '' : prompt)
fd.append(
'negativePrompt',
negativePrompt === undefined ? '' : negativePrompt
)
fd.append('croperX', croperRect.x.toString())
fd.append('croperY', croperRect.y.toString())
fd.append('croperHeight', croperRect.height.toString())