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