We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 476d543 + 5186b32 commit 04b14bcCopy full SHA for 04b14bc
web/scripts/pnginfo.js
@@ -131,6 +131,7 @@ export async function importA1111(graph, parameters) {
131
}
132
133
function replaceEmbeddings(text) {
134
+ if(!embeddings.length) return text;
135
return text.replaceAll(
136
new RegExp(
137
"\\b(" + embeddings.map((e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")).join("\\b|\\b") + ")\\b",
0 commit comments