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.
1 parent 867ef05 commit 7974ffeCopy full SHA for 7974ffe
mtokenizer/index.html
@@ -299,12 +299,12 @@ <h1 style="color: orange">Tokenize!</h1>
299
});
300
301
document.querySelectorAll('.example').forEach(example => {
302
- example.addEventListener('click', () => {
+ example.addEventListener('click', async () => {
303
const exampleText = example.getAttribute('data-example');
304
const tokenizerValue = example.getAttribute('data-tokenizer');
305
tokenizerDropdown.value = tokenizerValue;
306
- input.textContent = exampleText;
307
tokenizer = await loadTokenizer(tokenizerValue);
+ input.textContent = exampleText;
308
triggerInputEvent();
309
310
0 commit comments