Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|