Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -534,12 +534,20 @@ def mask_sanity_warnings(mask_full_u8: np.ndarray) -> List[str]:
|
|
| 534 |
|
| 535 |
def recommendation_for_band(band: Optional[str]) -> str:
|
| 536 |
if band in (None, "YELLOW"):
|
| 537 |
-
return
|
|
|
|
|
|
|
|
|
|
| 538 |
if band == "RED":
|
| 539 |
-
return
|
| 540 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 541 |
"If symptoms, TB exposure, immunosuppression, or strong clinical suspicion are present, "
|
| 542 |
"radiologist/clinician review and further testing are still advised."
|
|
|
|
| 543 |
|
| 544 |
|
| 545 |
# ============================================================
|
|
|
|
| 534 |
|
| 535 |
def recommendation_for_band(band: Optional[str]) -> str:
|
| 536 |
if band in (None, "YELLOW"):
|
| 537 |
+
return (
|
| 538 |
+
"✅ Recommendation: Radiologist/clinician review is recommended "
|
| 539 |
+
"(<b>indeterminate</b>). Subtle/diffuse TB, including miliary TB, cannot be excluded."
|
| 540 |
+
)
|
| 541 |
if band == "RED":
|
| 542 |
+
return (
|
| 543 |
+
"✅ Recommendation: <b>Urgent</b> clinician/radiologist review plus microbiological "
|
| 544 |
+
"confirmation (CBNAAT/GeneXpert, sputum) is recommended."
|
| 545 |
+
)
|
| 546 |
+
return (
|
| 547 |
+
"✅ Recommendation: A low AI score does <b>not</b> exclude miliary TB or other subtle/diffuse TB. "
|
| 548 |
"If symptoms, TB exposure, immunosuppression, or strong clinical suspicion are present, "
|
| 549 |
"radiologist/clinician review and further testing are still advised."
|
| 550 |
+
)
|
| 551 |
|
| 552 |
|
| 553 |
# ============================================================
|