diff --git a/ui/litellm-dashboard/src/components/playground/complianceUI/ComplianceUI.tsx b/ui/litellm-dashboard/src/components/playground/complianceUI/ComplianceUI.tsx index 3a97045421c..3e2eb2475ee 100644 --- a/ui/litellm-dashboard/src/components/playground/complianceUI/ComplianceUI.tsx +++ b/ui/litellm-dashboard/src/components/playground/complianceUI/ComplianceUI.tsx @@ -1155,43 +1155,48 @@ export default function ComplianceUI({ ) : (
{completedResults.length > 0 && ( -
- - - {testResults.length} - {" "} - total - -
- - - {matchCount} - {" "} - correct - -
- - - {mismatchCount} - {" "} - gaps - - - = 0.8 - ? "text-green-600" - : matchCount / completedResults.length >= 0.5 - ? "text-yellow-600" - : "text-red-600" - } - > +
+
+ + + {testResults.length} + {" "} + total + +
+ + + {matchCount} + {" "} + correct + +
+ + + {mismatchCount} + {" "} + gaps + +
+
= 0.8 + ? "bg-green-50 border-green-200 text-green-700" + : matchCount / completedResults.length >= 0.5 + ? "bg-amber-50 border-amber-200 text-amber-700" + : "bg-red-50 border-red-200 text-red-700" + }`} + > + + Score + + {Math.round( (matchCount / completedResults.length) * 100 )} % - +
)}