Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -184,6 +184,11 @@ def analyze(
|
|
| 184 |
f"- ALP: {alp} U/L (Normal: 44 – 147 U/L)\n"
|
| 185 |
f"- WBC: {wbc} K/uL (Normal: 4.0 – 11.0 K/uL)\n"
|
| 186 |
f"- Lymphocytes: {lymph} % (Normal: 20 – 40 %)\n"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 187 |
)
|
| 188 |
|
| 189 |
prompt = system_prompt + "\n" + patient_input
|
|
|
|
| 184 |
f"- ALP: {alp} U/L (Normal: 44 – 147 U/L)\n"
|
| 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
|