drvikasgaur commited on
Commit
6201100
·
verified ·
1 Parent(s): 656567b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
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 "✅ Recommendation: Radiologist/clinician review is recommended (**indeterminate**)."
 
 
 
538
  if band == "RED":
539
- return "✅ Recommendation: **Urgent** clinician/radiologist review + microbiological confirmation (CBNAAT/GeneXpert, sputum)."
540
- return "✅ Recommendation: A low AI score does <b>not</b> exclude miliary TB or other subtle/diffuse TB. "
 
 
 
 
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
  # ============================================================