mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-08-14 18:25:42 +02:00
Ignore commas while looking for embeddings
This commit is contained in:
@ -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 = []
|
||||
|
Reference in New Issue
Block a user