From fa3f196add14efdf27cab835c4fb0933fcca5a29 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Thu, 17 Aug 2023 16:09:17 +0530 Subject: [PATCH] Ignore commas while looking for embeddings --- ui/media/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 6db36ee8..195d10c2 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -1668,7 +1668,7 @@ function getCurrentUserRequest() { function setEmbeddings(task) { let prompt = task.reqBody.prompt.toLowerCase() let negativePrompt = task.reqBody.negative_prompt.toLowerCase() - let overallPrompt = (prompt + " " + negativePrompt).split(" ") + let overallPrompt = (prompt + " " + negativePrompt).replaceAll(",", "").split(" ") let embeddingsTree = modelsOptions["embeddings"] let embeddings = []