forked from extern/easydiffusion
Ignore commas while looking for embeddings
This commit is contained in:
parent
95004be0e9
commit
fa3f196add
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user