Spaces:
Running
Running
Update index.js
Browse files
index.js
CHANGED
@@ -88,7 +88,7 @@ function renderBox([xmin, ymin, xmax, ymax, score, id], [w, h]) {
|
|
88 |
|
89 |
// Draw label
|
90 |
const labelElement = document.createElement('span');
|
91 |
-
labelElement.textContent = `${model.config.id2label[id]} (${score.toFixed(2)}
|
92 |
labelElement.className = 'bounding-box-label';
|
93 |
labelElement.style.backgroundColor = color;
|
94 |
|
|
|
88 |
|
89 |
// Draw label
|
90 |
const labelElement = document.createElement('span');
|
91 |
+
labelElement.textContent = `${model.config.id2label[id]} (${score.toFixed(2)})`;
|
92 |
labelElement.className = 'bounding-box-label';
|
93 |
labelElement.style.backgroundColor = color;
|
94 |
|