Skip to content

Commit 8a722a2

Browse files
Update index.html
1 parent 0e6fcb9 commit 8a722a2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mtokenizer/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,6 @@ <h1 style="color: orange">Tokenize!</h1>
212212
}
213213

214214
input.addEventListener('input', async () => {
215-
errorMessage.textContent = 'Tokenizing...';
216-
errorMessage.style.color = 'yellow';
217-
218215
if (input.textContent === ""){
219216
tokensDisplay.innerHTML = "";
220217
return;
@@ -224,6 +221,9 @@ <h1 style="color: orange">Tokenize!</h1>
224221

225222
if (!tokenizer) return;
226223

224+
errorMessage.textContent = 'Tokenizing...';
225+
errorMessage.style.color = 'yellow';
226+
227227
console.log(text)
228228
const tokens = tokenizer.tokenize("<s>"+text).slice(1);
229229
console.log(tokens)

0 commit comments

Comments
 (0)