Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
|
@@ -14,9 +14,9 @@ const THRESHOLD = 0.2;
|
|
| 14 |
|
| 15 |
// Create a new object detection pipeline
|
| 16 |
status.textContent = 'Loading model...';
|
| 17 |
-
const model_id = 'onnx-community/
|
| 18 |
const processor = await AutoProcessor.from_pretrained(model_id);
|
| 19 |
-
const model = await AutoModel.from_pretrained(model_id, { quantized:
|
| 20 |
status.textContent = 'Ready';
|
| 21 |
|
| 22 |
example.addEventListener('click', (e) => {
|
|
|
|
| 14 |
|
| 15 |
// Create a new object detection pipeline
|
| 16 |
status.textContent = 'Loading model...';
|
| 17 |
+
const model_id = 'onnx-community/yolov10m';
|
| 18 |
const processor = await AutoProcessor.from_pretrained(model_id);
|
| 19 |
+
const model = await AutoModel.from_pretrained(model_id, { quantized: true });
|
| 20 |
status.textContent = 'Ready';
|
| 21 |
|
| 22 |
example.addEventListener('click', (e) => {
|