mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-05 14:18:12 +02:00
properly showing the proposed comment
This commit is contained in:
@ -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();
|
||||||
|
Reference in New Issue
Block a user