mn_predictions=function(predictions) {
const text=predictions.map(prediction=>
prediction.probability.toFixed(3)+': '+prediction.className+'<br>');
const rows=predictions.map(prediction=> `
<div style='display:table-row; background:silver;'>
<div style='display:table-cell; width:300px; padding:2px'>
${prediction.className}</div>
<div style='display:table-cell; padding:2px; text-align:center;'>
${prediction.probability.toFixed(3)}</div>
<div style='display:table-cell; padding:2px; text-align:center;'>
${imagenetClassIdx[prediction.className]}</div>
</div>`);
return html`
<div style='display:table-row; font-weight:bold;
text-align:center; background:silver;'>
<div style='display:table-cell; border:double black;
padding:5px'>class</div>
<div style='display:table-cell; border:double black;
padding:5px'>probability</div>
<div style='display:table-cell; border:double black;
padding:5px'>imagenet class id</div>
</div>
${rows.join('')}`}