Update index.js
Browse files
index.js
CHANGED
|
@@ -13,7 +13,7 @@ const EXAMPLE_URL = 'https://huggingface.co/datasets/Xenova/transformers.js-docs
|
|
| 13 |
|
| 14 |
// Create a new object detection pipeline
|
| 15 |
status.textContent = 'Loading model...';
|
| 16 |
-
const detector = await pipeline('Xenova/colbertv2.0');
|
| 17 |
status.textContent = 'Ready';
|
| 18 |
|
| 19 |
example.addEventListener('click', (e) => {
|
|
|
|
| 13 |
|
| 14 |
// Create a new object detection pipeline
|
| 15 |
status.textContent = 'Loading model...';
|
| 16 |
+
const detector = await pipeline('feature-extraction','Xenova/colbertv2.0');
|
| 17 |
status.textContent = 'Ready';
|
| 18 |
|
| 19 |
example.addEventListener('click', (e) => {
|