Spaces:
Runtime error
Runtime error
Update index.html
Browse filesadded core model state
- index.html +4 -1
index.html
CHANGED
|
@@ -273,7 +273,10 @@
|
|
| 273 |
}
|
| 274 |
return { setSources, load, drawBase, highlight };
|
| 275 |
})();
|
| 276 |
-
|
|
|
|
|
|
|
|
|
|
| 277 |
|
| 278 |
async function loadModel(key){
|
| 279 |
const mySeq = ++loadSeq;
|
|
|
|
| 273 |
}
|
| 274 |
return { setSources, load, drawBase, highlight };
|
| 275 |
})();
|
| 276 |
+
|
| 277 |
+
// Core model state (module scope)
|
| 278 |
+
let tokenizer = null, model = null;
|
| 279 |
+
let loadSeq = 0;
|
| 280 |
|
| 281 |
async function loadModel(key){
|
| 282 |
const mySeq = ++loadSeq;
|