From 283bb2fa890ff048ce66765c60fb428dd03cf2dd Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 29 May 2024 23:38:55 +0300 Subject: [PATCH] Add SD multimodal prompt toast --- public/scripts/extensions/stable-diffusion/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/scripts/extensions/stable-diffusion/index.js b/public/scripts/extensions/stable-diffusion/index.js index 20f9c3d30..5623fe33a 100644 --- a/public/scripts/extensions/stable-diffusion/index.js +++ b/public/scripts/extensions/stable-diffusion/index.js @@ -2185,6 +2185,7 @@ async function generateMultimodalPrompt(generationType, quietPrompt) { } try { + const toast = toastr.info('Generating multimodal caption...', 'Image Generation'); const response = await fetch(avatarUrl); if (!response.ok) { @@ -2195,6 +2196,7 @@ async function generateMultimodalPrompt(generationType, quietPrompt) { const avatarBase64 = await getBase64Async(avatarBlob); const caption = await getMultimodalCaption(avatarBase64, quietPrompt); + toastr.clear(toast); if (!caption) { throw new Error('No caption returned from the API.');