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 fca76a9 commit 278b3d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,9 @@ export function apply(ctx: Context, config: Config) {
if (config.type === 'sd-webui') {
try {
finalPrompt = (JSON.parse((res.data as StableDiffusionWebUI.Response).info)).prompt
} catch { }
} catch (err) {
logger.warn(err)
}
return forceDataPrefix((res.data as StableDiffusionWebUI.Response).images[0])
}
if (config.type === 'stable-horde') {
Expand Down

0 comments on commit 278b3d7

Please sign in to comment.