nusaibah0110 commited on
Commit
19434cc
·
1 Parent(s): a453100
frontend/src/components/ResultsPanel.tsx CHANGED
@@ -95,6 +95,7 @@ export function ResultsPanel({ uploadedImage, result, loading }: ResultsPanelPro
95
  // Precompute some helpers for rendering confidences
96
  const isCINModel = /cin/i.test(String(model_used || ""));
97
  // Determine predicted class from summary.prediction if available, otherwise pick the highest confidence
 
98
  const predictedClassFromConfidence = (conf: any) => {
99
  try {
100
  const entries = Object.entries(conf || {});
 
95
  // Precompute some helpers for rendering confidences
96
  const isCINModel = /cin/i.test(String(model_used || ""));
97
  // Determine predicted class from summary.prediction if available, otherwise pick the highest confidence
98
+ // from the confidence object.
99
  const predictedClassFromConfidence = (conf: any) => {
100
  try {
101
  const entries = Object.entries(conf || {});