This commit is contained in:
Vladimir Mandic
2023-09-09 19:39:21 -04:00
parent 7bda411738
commit 36001151bb
5 changed files with 14 additions and 17 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ function setupBracketChecking(idPrompt, idCounter) {
const textarea = gradioApp().querySelector(`#${idPrompt} > label > textarea`);
const counter = gradioApp().getElementById(idCounter);
if (!textarea || !counter) return;
if (!promptCheckerInitialized) log('promptChecker');
if (!promptCheckerInitialized) log('initPromptChecker');
promptCheckerInitialized = true;
textarea.addEventListener('input', () => checkBrackets(textarea, counter));
}