Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -10,11 +10,11 @@ const imageContainer = document.getElementById('container');
|
|
10 |
const example = document.getElementById('example');
|
11 |
|
12 |
const EXAMPLE_URL = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/city-streets.jpg';
|
13 |
-
const THRESHOLD = 0.
|
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: false });
|
20 |
status.textContent = 'Ready';
|
|
|
10 |
const example = document.getElementById('example');
|
11 |
|
12 |
const EXAMPLE_URL = 'https://huggingface.co/datasets/Xenova/transformers.js-docs/resolve/main/city-streets.jpg';
|
13 |
+
const THRESHOLD = 0.2;
|
14 |
|
15 |
// Create a new object detection pipeline
|
16 |
status.textContent = 'Loading model...';
|
17 |
+
const model_id = 'onnx-community/yolov10s';
|
18 |
const processor = await AutoProcessor.from_pretrained(model_id);
|
19 |
const model = await AutoModel.from_pretrained(model_id, { quantized: false });
|
20 |
status.textContent = 'Ready';
|