Xenova HF staff commited on
Commit
3448663
1 Parent(s): 74a6723

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +1 -1
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