async function displayTags(tokenScores, parentEl, modelName) {
  const metadata = await loadMetadata(modelName);
  const {labels} = metadata;

  const tagsDiv = document.createElement('div');
  tagsDiv.classList = `tags`;

  tagsDiv.innerHTML =
      tokenScores
          .map(scores => {
            const maxIndex = scores.indexOf(Math.max(...scores));
            const token = labels[maxIndex];
            const tokenScore = (scores[maxIndex] * 100).toPrecision(3);
            return `<div class="tag ${token}">` +
                `&nbsp;&nbsp;${token.replace(/__/g, '')}<sup>` +
                `${tokenScore}%</sup></div>`;
          })
          .join('\n');
  parentEl.appendChild(tagsDiv);
}
@param {*} tokenScores
@param {*} parentEl
@param {*} modelName