Muhammadidrees commited on
Commit
43aec73
·
verified ·
1 Parent(s): e156e50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -185,10 +185,11 @@ def analyze(
185
  f"- WBC: {wbc} K/uL (Normal: 4.0 – 11.0 K/uL)\n"
186
  f"- Lymphocytes: {lymph} % (Normal: 20 – 40 %)\n"
187
  "Pre-Analyzed Biomarker Status (strictly based on reference ranges):\n"
188
- "\n".join([f"- {b}: {info['value']} → {info['status']} (Range: {info['range']}")
189
  "Tabular Mapping (AI must only fill the last column):\n"
190
  "| Biomarker | Value | Status (Low/Normal/High) | Reference Range | AI-Inferred Insight |\n"
191
 
 
192
  )
193
 
194
  prompt = system_prompt + "\n" + patient_input
 
185
  f"- WBC: {wbc} K/uL (Normal: 4.0 – 11.0 K/uL)\n"
186
  f"- Lymphocytes: {lymph} % (Normal: 20 – 40 %)\n"
187
  "Pre-Analyzed Biomarker Status (strictly based on reference ranges):\n"
188
+ + "\n".join([f"- {b}: {info['value']} → {info['status']} (Range: {info['range']})" for b, info in {}.items()]) + "\n"
189
  "Tabular Mapping (AI must only fill the last column):\n"
190
  "| Biomarker | Value | Status (Low/Normal/High) | Reference Range | AI-Inferred Insight |\n"
191
 
192
+
193
  )
194
 
195
  prompt = system_prompt + "\n" + patient_input