Spaces:
Sleeping
Sleeping
Commit
·
46b55cb
1
Parent(s):
ca32b15
Updated Results
Browse files
frontend/src/components/ResultsPanel.tsx
CHANGED
|
@@ -142,8 +142,6 @@ export function ResultsPanel({ uploadedImage, result, loading }: ResultsPanelPro
|
|
| 142 |
</div>
|
| 143 |
)}
|
| 144 |
|
| 145 |
-
|
| 146 |
-
//----------------------------- Analysis Details -----------------------------
|
| 147 |
{/* Summary Section - model-specific rendering (colposcopy, cytology, histopathology) */}
|
| 148 |
{summary && (() => {
|
| 149 |
const model = (model_used || "").toString();
|
|
@@ -151,7 +149,7 @@ export function ResultsPanel({ uploadedImage, result, loading }: ResultsPanelPro
|
|
| 151 |
const isCyto = /cyto|cytology/i.test(model);
|
| 152 |
const isHistoLike = /mwt|cin|histopath/i.test(model);
|
| 153 |
|
| 154 |
-
// helper values
|
| 155 |
const abnormalCount = Number(summary.abnormal_cells) || 0;
|
| 156 |
const pred = (summary.prediction || summary.result || "").toString().toLowerCase();
|
| 157 |
const isAbnormal = abnormalCount > 0 || /abnormal|positive|high-grade|malignant/.test(pred);
|
|
|
|
| 142 |
</div>
|
| 143 |
)}
|
| 144 |
|
|
|
|
|
|
|
| 145 |
{/* Summary Section - model-specific rendering (colposcopy, cytology, histopathology) */}
|
| 146 |
{summary && (() => {
|
| 147 |
const model = (model_used || "").toString();
|
|
|
|
| 149 |
const isCyto = /cyto|cytology/i.test(model);
|
| 150 |
const isHistoLike = /mwt|cin|histopath/i.test(model);
|
| 151 |
|
| 152 |
+
// ------helper values
|
| 153 |
const abnormalCount = Number(summary.abnormal_cells) || 0;
|
| 154 |
const pred = (summary.prediction || summary.result || "").toString().toLowerCase();
|
| 155 |
const isAbnormal = abnormalCount > 0 || /abnormal|positive|high-grade|malignant/.test(pred);
|