in web/src/predictions.js [44:56]
Predictions.prototype.setProbs = function(probs) {
var max = Math.max.apply(Math, probs);
for (var i = 0; i < this._bars.length; ++i) {
this._bars[i].style.width = (probs[i] * 100).toFixed(2) + '%';
this._percentLabels[i].textContent = (probs[i] * 100).toFixed(1) + '%';
if (probs[i] !== max) {
this._rows[i].className = 'few-shot-predictions-row';
} else {
this._rows[i].className = 'few-shot-predictions-row ' +
'few-shot-predictions-row-active';
}
}
};