Spaces:
Running
Running
Update index.html
Browse files- index.html +0 -19
index.html
CHANGED
@@ -127,25 +127,6 @@
|
|
127 |
status('Failed to load tokenizer (network blocked or slow). Try GPT-2 or a different VPN route.');
|
128 |
}
|
129 |
}
|
130 |
-
|
131 |
-
|
132 |
-
async function tokenize(){
|
133 |
-
const myRun = ++runId;
|
134 |
-
|
135 |
-
if (!tokenizer) {
|
136 |
-
await loadTokenizer(modelSel.value);
|
137 |
-
if (!tokenizer) { render(); return; }
|
138 |
-
}
|
139 |
-
|
140 |
-
const text = (inputEl.value ?? '').trim();
|
141 |
-
if (!text) {
|
142 |
-
state.tokens = [];
|
143 |
-
state.ids = [];
|
144 |
-
render();
|
145 |
-
status('Type to tokenize…');
|
146 |
-
return;
|
147 |
-
}
|
148 |
-
}
|
149 |
|
150 |
async function tokenize(){
|
151 |
const myRun = ++runId;
|
|
|
127 |
status('Failed to load tokenizer (network blocked or slow). Try GPT-2 or a different VPN route.');
|
128 |
}
|
129 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
|
131 |
async function tokenize(){
|
132 |
const myRun = ++runId;
|