Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
idranme authored Dec 25, 2023
1 parent 278b3d7 commit f29a5e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,8 @@ export function apply(ctx: Context, config: Config) {
try {
finalPrompt = (JSON.parse((res.data as StableDiffusionWebUI.Response).info)).prompt
} catch (err) {
logger.warn(err)
const output = session.resolve(options.output ?? config.output)
if (output !== 'minimal') logger.warn(err)
}
return forceDataPrefix((res.data as StableDiffusionWebUI.Response).images[0])
}
Expand Down

0 comments on commit f29a5e0

Please sign in to comment.