properly showing the proposed comment

This commit is contained in:
Karma Riuk
2025-05-14 22:07:13 +02:00
parent b023d197ce
commit 8c9ba66705

View File

@ -77,7 +77,10 @@ document.getElementById("upload-btn").onclick = async () => {
const commentCell = row.insertCell(); const commentCell = row.insertCell();
const scoreCell = row.insertCell(); const scoreCell = row.insertCell();
commentCell.innerHTML = `<span class='comment-cell'>${info["proposed_comment"]}</span>`; const span = document.createElement("span");
span.className = "comment-cell";
span.textContent = info["proposed_comment"];
commentCell.appendChild(span);
scoreCell.textContent = info["max_bleu_score"].toFixed(2); scoreCell.textContent = info["max_bleu_score"].toFixed(2);
} else { } else {
const compiledCell = row.insertCell(); const compiledCell = row.insertCell();