new setting: Extra text to add before <...> when adding extra network to prompt

This commit is contained in:
AUTOMATIC
2023-03-11 14:18:18 +03:00
parent 5fd1158b9e
commit aaa367e35c
2 changed files with 2 additions and 1 deletions

View File

@@ -78,7 +78,7 @@ function cardClicked(tabname, textToAdd, allowNegativePrompt){
var textarea = allowNegativePrompt ? activePromptTextarea[tabname] : gradioApp().querySelector("#" + tabname + "_prompt > label > textarea")
if(! tryToRemoveExtraNetworkFromPrompt(textarea, textToAdd)){
textarea.value = textarea.value + " " + textToAdd
textarea.value = textarea.value + opts.extra_networks_add_text_separator + textToAdd
}
updateInput(textarea)