diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 5c7cbe99..fac388d8 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -1345,7 +1345,7 @@ function setEmbeddings(task) { let prompt = task.reqBody.prompt let negativePrompt = task.reqBody.negative_prompt let overallPrompt = (prompt + " " + negativePrompt).toLowerCase() - overallPrompt = overallPrompt.replaceAll(/[^a-z0-9\-\.]/g, " ") // only allow alpha-numeric, dots and hyphens + overallPrompt = overallPrompt.replaceAll(/[^a-z0-9\-_\.]/g, " ") // only allow alpha-numeric, dots and hyphens overallPrompt = overallPrompt.split(" ") let embeddingsTree = modelsOptions["embeddings"]