Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)
Python
two decimal points for percentages
Abi Raja461a30d343d3
diff --git a/frontend/src/components/evals/PairwiseEvalsPage.tsx b/frontend/src/components/evals/PairwiseEvalsPage.tsxindex 8c546156..80d66ccb 100644--- a/frontend/src/components/evals/PairwiseEvalsPage.tsx+++ b/frontend/src/components/evals/PairwiseEvalsPage.tsx@@ -33,17 +33,16 @@ function PairwiseEvalsPage() {const leftWins = outcomes.filter((o) => o === "left").length;const rightWins = outcomes.filter((o) => o === "right").length;const ties = outcomes.filter((o) => o === "tie").length;-// Calculate percentagesconst leftPercentage = totalVotes- ? ((leftWins / totalVotes) * 100).toFixed(1)- : "0.0";+ ? ((leftWins / totalVotes) * 100).toFixed(2)+ : "0.00";const rightPercentage = totalVotes- ? ((rightWins / totalVotes) * 100).toFixed(1)- : "0.0";+ ? ((rightWins / totalVotes) * 100).toFixed(2)+ : "0.00";const tiePercentage = totalVotes- ? ((ties / totalVotes) * 100).toFixed(1)- : "0.0";+ ? ((ties / totalVotes) * 100).toFixed(2)+ : "0.00";const loadEvals = async () => {if (!folder1Path || !folder2Path) {